From f2f9b7d1c90758d0dd4da28ff6132b3ff63c8f21 Mon Sep 17 00:00:00 2001 From: Sakamoto Shiina <68018796+ShiinaSakamoto@users.noreply.github.com> Date: Wed, 11 Sep 2024 16:00:58 +0900 Subject: [PATCH] [bugfix] Main Page: Side bar. Fix the width (and remove scroll bar when it's compact mode.) --- .../sidebar_section/SidebarSection.module.scss | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src-ui/app/main_page/sidebar_section/SidebarSection.module.scss b/src-ui/app/main_page/sidebar_section/SidebarSection.module.scss index 41d877af..240b6a16 100644 --- a/src-ui/app/main_page/sidebar_section/SidebarSection.module.scss +++ b/src-ui/app/main_page/sidebar_section/SidebarSection.module.scss @@ -7,13 +7,16 @@ background-color: var(--dark_850_color); &.is_compact_mode { min-width: auto; + .scroll_container { + overflow-y: hidden; + width: auto; + } } } - .scroll_container { width: calc(100% + 0.8rem); - overflow-y: overlay; + overflow-y: scroll; overflow-x: hidden; margin-bottom: calc(2rem + 1.6rem + 2rem); // config button's sizes (svg + padding + margin). pointer-events: auto; @@ -35,9 +38,4 @@ background-color: var(--dark_800_color); } } - - &.is_compact_mode { - width: 100%; - } - }