mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Personalsettings - remove marginLeft as it breaks the layout
Signed-off-by: szaimen <szaimen@e.mail.de> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
This commit is contained in:
parent
29166b6c61
commit
48e8f5a536
3 changed files with 8 additions and 6 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -79,7 +79,9 @@ export default {
|
|||
.map(([paramId, { appId, displayId, visibility }]) => ({ id: paramId, appId, displayId, visibility }))
|
||||
.sort(compareParams),
|
||||
// TODO remove this when not used once the settings layout is updated
|
||||
marginLeft: window.getComputedStyle(document.getElementById('personal-settings-avatar-container')).getPropertyValue('width').trim(),
|
||||
marginLeft: window.matchMedia('(min-width: 1600px)').matches
|
||||
? window.getComputedStyle(document.getElementById('personal-settings-avatar-container')).getPropertyValue('width').trim()
|
||||
: '0px'
|
||||
}
|
||||
},
|
||||
|
||||
|
|
@ -93,7 +95,7 @@ export default {
|
|||
subscribe('settings:profile-enabled:updated', this.handleProfileEnabledUpdate)
|
||||
// TODO remove this when not used once the settings layout is updated
|
||||
window.onresize = () => {
|
||||
this.marginLeft = window.matchMedia('(min-width: 1200px)').matches
|
||||
this.marginLeft = window.matchMedia('(min-width: 1600px)').matches
|
||||
? window.getComputedStyle(document.getElementById('personal-settings-avatar-container')).getPropertyValue('width').trim()
|
||||
: '0px'
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue