Remove padding from apps navigation if there is no settings area
* fixes #2189 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
d342eedc77
commit
51b7d0490e
|
@ -43,6 +43,10 @@
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#app-navigation.without-app-settings {
|
||||||
|
padding-bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
#app-navigation .active.with-menu > a,
|
#app-navigation .active.with-menu > a,
|
||||||
#app-navigation .with-counter > a {
|
#app-navigation .with-counter > a {
|
||||||
padding-right: 50px;
|
padding-right: 50px;
|
||||||
|
|
|
@ -59,6 +59,10 @@
|
||||||
var registerAppsSlideToggle = function () {
|
var registerAppsSlideToggle = function () {
|
||||||
var buttons = $('[data-apps-slide-toggle]');
|
var buttons = $('[data-apps-slide-toggle]');
|
||||||
|
|
||||||
|
if (buttons.length === 0) {
|
||||||
|
$('#app-navigation').addClass('without-app-settings');
|
||||||
|
}
|
||||||
|
|
||||||
$(document).click(function (event) {
|
$(document).click(function (event) {
|
||||||
|
|
||||||
if (dynamicSlideToggleEnabled) {
|
if (dynamicSlideToggleEnabled) {
|
||||||
|
|
Loading…
Reference in New Issue