Remove padding from apps navigation if there is no settings area

* fixes #2189

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2016-11-23 18:41:33 +01:00
parent d342eedc77
commit 51b7d0490e
No known key found for this signature in database
GPG Key ID: 9CE5ED29E7FCD38A
2 changed files with 8 additions and 0 deletions

View File

@ -43,6 +43,10 @@
box-sizing: border-box; box-sizing: border-box;
} }
#app-navigation.without-app-settings {
padding-bottom: 0;
}
#app-navigation .active.with-menu > a, #app-navigation .active.with-menu > a,
#app-navigation .with-counter > a { #app-navigation .with-counter > a {
padding-right: 50px; padding-right: 50px;

View File

@ -59,6 +59,10 @@
var registerAppsSlideToggle = function () { var registerAppsSlideToggle = function () {
var buttons = $('[data-apps-slide-toggle]'); var buttons = $('[data-apps-slide-toggle]');
if (buttons.length === 0) {
$('#app-navigation').addClass('without-app-settings');
}
$(document).click(function (event) { $(document).click(function (event) {
if (dynamicSlideToggleEnabled) { if (dynamicSlideToggleEnabled) {