]> source.dussan.org Git - nextcloud-server.git/commitdiff
Remove padding from apps navigation if there is no settings area 2283/head
authorMorris Jobke <hey@morrisjobke.de>
Wed, 23 Nov 2016 17:41:33 +0000 (18:41 +0100)
committerMorris Jobke <hey@morrisjobke.de>
Wed, 23 Nov 2016 17:41:35 +0000 (18:41 +0100)
* fixes #2189

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
core/css/apps.css
core/js/apps.js

index bef5c7c4937ecb17d5633869465c8ef267328b49..ba1e1265655f0d20b7c97d07d0babcae36f3f241 100644 (file)
        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;
index 3b94aa1d87e3cb77ff90642706ef48a5b630c05e..4daab5ce4c435f9cfee7347b904aed13c5e5b30e 100644 (file)
        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) {