Merge pull request #2283 from nextcloud/no-padding-if-no-settings-area
Remove padding from apps navigation if there is no settings area
This commit is contained in:
commit
25acce7e0d
|
@ -43,6 +43,10 @@
|
|||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
#app-navigation.without-app-settings {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
#app-navigation .active.with-menu > a,
|
||||
#app-navigation .with-counter > a {
|
||||
padding-right: 50px;
|
||||
|
|
|
@ -59,6 +59,10 @@
|
|||
var registerAppsSlideToggle = function () {
|
||||
var buttons = $('[data-apps-slide-toggle]');
|
||||
|
||||
if (buttons.length === 0) {
|
||||
$('#app-navigation').addClass('without-app-settings');
|
||||
}
|
||||
|
||||
$(document).click(function (event) {
|
||||
|
||||
if (dynamicSlideToggleEnabled) {
|
||||
|
|
Loading…
Reference in New Issue