diff options
author | Morris Jobke <hey@morrisjobke.de> | 2016-11-23 18:41:33 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-11-23 18:41:35 +0100 |
commit | 51b7d0490e05cdd52cf472b6dbd3649b44826cda (patch) | |
tree | 23730ee3338c8b3e43ea29f7c57e87f91cb919b7 /core/js | |
parent | d342eedc777413cc4b9438d53faed561563e03bf (diff) | |
download | nextcloud-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.js | 4 |
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) { |