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:
Julius Härtl 2016-11-23 21:52:13 +01:00 committed by GitHub
commit 25acce7e0d
2 changed files with 8 additions and 0 deletions

View File

@ -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;

View File

@ -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) {