aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2016-11-23 18:41:33 +0100
committerMorris Jobke <hey@morrisjobke.de>2016-11-23 18:41:35 +0100
commit51b7d0490e05cdd52cf472b6dbd3649b44826cda (patch)
tree23730ee3338c8b3e43ea29f7c57e87f91cb919b7 /core
parentd342eedc777413cc4b9438d53faed561563e03bf (diff)
downloadnextcloud-server-51b7d0490e05cdd52cf472b6dbd3649b44826cda.tar.gz
nextcloud-server-51b7d0490e05cdd52cf472b6dbd3649b44826cda.zip
Remove padding from apps navigation if there is no settings area
* fixes #2189 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'core')
-rw-r--r--core/css/apps.css4
-rw-r--r--core/js/apps.js4
2 files changed, 8 insertions, 0 deletions
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) {