From 5ac59323202f13b3185a0ea9c17fcc9e76080c06 Mon Sep 17 00:00:00 2001 From: Felix Niklas Date: Fri, 27 Jul 2018 18:08:38 +0200 Subject: [PATCH] Better sidebar scrollbar spacing With the sidebar tabs overlapping the main content there needs to be a gap between the sidebar and the tabs for the scrollbar. The most elegant solution would be to only open up this gap when a scrollbar is visible. But the tabs are part of the sidebar and thus life in a different controller. For now a cleaner solution that to force a scrollbar is to show an empty scrollbar. --- app/assets/stylesheets/zammad.scss | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/app/assets/stylesheets/zammad.scss b/app/assets/stylesheets/zammad.scss index 19233051e..557224449 100644 --- a/app/assets/stylesheets/zammad.scss +++ b/app/assets/stylesheets/zammad.scss @@ -4728,11 +4728,6 @@ footer { .ticketZoom { background: #f8f9fa; - /* - force ticket zoom to show scrollbars - because we offset the tabs bar when the os shows scrollbars - */ - min-height: 101%; } .ticketZoom-controls { @@ -5545,6 +5540,12 @@ footer { .tabsSidebar-tabsSpacer { @include bidi-style(padding-right, 62px !important, padding-left, 0); + /* + force div to show scrollbars + because we offset the sidebar tabs when the os shows scrollbars + */ + overflow-x: hidden; + overflow-y: scroll; } .tabsSidebar-sidebarSpacer {