From 51b7d0490e05cdd52cf472b6dbd3649b44826cda Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Wed, 23 Nov 2016 18:41:33 +0100 Subject: [PATCH] Remove padding from apps navigation if there is no settings area * fixes #2189 Signed-off-by: Morris Jobke --- core/css/apps.css | 4 ++++ core/js/apps.js | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/core/css/apps.css b/core/css/apps.css index bef5c7c4937..ba1e1265655 100644 --- a/core/css/apps.css +++ b/core/css/apps.css @@ -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; diff --git a/core/js/apps.js b/core/js/apps.js index 3b94aa1d87e..4daab5ce4c4 100644 --- a/core/js/apps.js +++ b/core/js/apps.js @@ -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) { -- 2.39.5