From 84b0790b99582bff8bfb764665a6e0c057737983 Mon Sep 17 00:00:00 2001 From: Marin Treselj Date: Fri, 28 Jul 2017 14:44:29 +0200 Subject: [PATCH] Fixes nextcloud/gallery#269 Signed-off-by: Marin Treselj --- core/css/header.scss | 8 ++++---- core/js/js.js | 4 ++-- core/templates/layout.user.php | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/core/css/header.scss b/core/css/header.scss index c3a878357ce..e530763b41f 100644 --- a/core/css/header.scss +++ b/core/css/header.scss @@ -141,18 +141,18 @@ vertical-align: middle; } - #header-left, - #header-right { + .header-left, + .header-right { display: inline-flex; align-items: center; } - #header-left { + .header-left { flex: 0 0; flex-grow: 1; } - #header-right { + .header-right { justify-content: flex-end; } } diff --git a/core/js/js.js b/core/js/js.js index 2aa7bf1bc55..c02ef5c7920 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -1203,7 +1203,7 @@ OC.Notification={ /** * Updates (replaces) a sanitized notification. - * + * * @param {string} text Message to display * @return {jQuery} JQuery element for notificaiton row */ @@ -1512,7 +1512,7 @@ function initCore() { var resizeMenu = function() { var appList = $('#appmenu li'); - var headerWidth = $('#header-left').width() - $('#nextcloud').width() + var headerWidth = $('.header-left').width() - $('#nextcloud').width() var usePercentualAppMenuLimit = 0.33; var minAppsDesktop = 8; var availableWidth = headerWidth - $(appList).width(); diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php index f22bfe85955..50ed08761ae 100644 --- a/core/templates/layout.user.php +++ b/core/templates/layout.user.php @@ -43,7 +43,7 @@