aboutsummaryrefslogtreecommitdiffstats
path: root/core/js
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/js
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/js')
-rw-r--r--core/js/apps.js4
1 files changed, 4 insertions, 0 deletions
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) {