Skip to content

Commit 5240242

Browse files
committed
reduce the height of project selector from menu sidebar height, add a scroll for the menu when there is no sub menu
1 parent e8e8cd7 commit 5240242

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

frontend/src/global_styles/layout/_main_menu.sass

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,16 @@ $arrow-left-width: 40px
5252
background-color: var(--main-menu-bg-color)
5353

5454
#menu-sidebar
55-
height: calc(100vh - var(--header-height))
55+
// reduce the height of projects selector (77px)
56+
// projects selector height (40px) + its margin top (12px) + divider height (1px) + its margin top and bottom (24px)
57+
height: calc(100vh - var(--header-height) - 77px)
5658
position: relative
5759
@include styled-scroll-bar
5860

61+
.menu_root
62+
@include styled-scroll-bar
63+
height: calc(100vh - var(--header-height) - 77px)
64+
overflow-y: scroll
5965
// Fixed heights to allow inner scrolling
6066
.menu_root.closed,
6167
.menu_root > li.open,

0 commit comments

Comments
 (0)