fix blank line when settings are open
This commit is contained in:
parent
a67688e779
commit
ee98a49366
|
@ -298,6 +298,10 @@
|
||||||
padding: 10px 0;
|
padding: 10px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.side-menu-always-displayed #body-settings, #body-settings.body-settings-side-menu {
|
||||||
|
overflow-x: visible;
|
||||||
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 1024px) {
|
@media screen and (max-width: 1024px) {
|
||||||
#side-menu.side-menu-big {
|
#side-menu.side-menu-big {
|
||||||
max-width: 290px;
|
max-width: 290px;
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
"extends @nextcloud/browserslist-config"
|
"extends @nextcloud/browserslist-config"
|
||||||
],
|
],
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=10.0.0"
|
"node": ">=16.0.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.9.0",
|
"@babel/core": "^7.9.0",
|
||||||
|
@ -43,9 +43,9 @@
|
||||||
"eslint-plugin-standard": "^4.0.1",
|
"eslint-plugin-standard": "^4.0.1",
|
||||||
"eslint-plugin-vue": "^5.2.3",
|
"eslint-plugin-vue": "^5.2.3",
|
||||||
"file-loader": "^6.0.0",
|
"file-loader": "^6.0.0",
|
||||||
"node-sass": "^4.13.1",
|
|
||||||
"sass-loader": "^8.0.2",
|
"sass-loader": "^8.0.2",
|
||||||
"stylelint": "^8.4.0",
|
"stylelint": "^8.4.0",
|
||||||
|
"sass": "^1.49.9",
|
||||||
"stylelint-config-recommended-scss": "^3.3.0",
|
"stylelint-config-recommended-scss": "^3.3.0",
|
||||||
"stylelint-scss": "^3.16.0",
|
"stylelint-scss": "^3.16.0",
|
||||||
"stylelint-webpack-plugin": "^0.10.5",
|
"stylelint-webpack-plugin": "^0.10.5",
|
||||||
|
|
|
@ -71,7 +71,6 @@ const updateTopMenu = function() {
|
||||||
if (targetBlankApps.indexOf(dataId) !== -1) {
|
if (targetBlankApps.indexOf(dataId) !== -1) {
|
||||||
querySelector('a', app).setAttribute('target', '_blank')
|
querySelector('a', app).setAttribute('target', '_blank')
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
navigationApps.innerHTML = navigationAppsHtml
|
navigationApps.innerHTML = navigationAppsHtml
|
||||||
|
|
|
@ -171,6 +171,21 @@ if ($_['always-displayed']) {
|
||||||
sideMenuFocus()
|
sideMenuFocus()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
const sideMenuObserver = new MutationObserver((e) => {
|
||||||
|
if (body.getAttribute('id') !== 'body-settings') {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
body.classList.toggle('body-settings-side-menu', sideMenu.classList.contains('open'))
|
||||||
|
})
|
||||||
|
|
||||||
|
sideMenuObserver.observe(sideMenu, {
|
||||||
|
attributes: true,
|
||||||
|
attributeFilter: ['class'],
|
||||||
|
childList: false,
|
||||||
|
characterData: false
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
body.appendChild(sideMenuContainer)
|
body.appendChild(sideMenuContainer)
|
||||||
|
|
Loading…
Reference in a new issue