Skip to content

Commit

Permalink
Relayout the menu items in nav menu again
Browse files Browse the repository at this point in the history
  • Loading branch information
cheeaun committed Oct 19, 2023
1 parent 2916d11 commit 71bf860
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/components/nav-menu.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
.nav-menu section:last-child {
background-color: var(--bg-faded-color);
margin-bottom: -8px;
padding-bottom: 8px;
}

@media (min-width: 23em) {
.nav-menu {
display: grid;
Expand All @@ -8,6 +14,7 @@
'left right';
padding: 0;
width: 22em;
max-width: 100%;
}
.nav-menu .top-menu {
grid-area: top;
Expand All @@ -27,7 +34,6 @@
}
}
.nav-menu section:last-child {
background-color: var(--bg-faded-color);
background-image: linear-gradient(
to right,
var(--divider-color) 1px,
Expand All @@ -45,6 +51,15 @@
animation: phanpying 0.2s ease-in-out both;
border-top-right-radius: inherit;
border-bottom-right-radius: inherit;
margin-bottom: 0;
display: flex;
flex-direction: column;

.divider-grow {
flex-grow: 1;
height: auto;
background-color: transparent;
}
}
.nav-menu section:last-child > .szh-menu__divider:first-child {
display: none;
Expand Down
1 change: 1 addition & 0 deletions src/components/nav-menu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ function NavMenu(props) {
<Icon icon="block" size="l" />
Blocked users&hellip;
</MenuItem>
<MenuDivider className="divider-grow" />
<MenuItem
onClick={() => {
states.showKeyboardShortcutsHelp = true;
Expand Down

0 comments on commit 71bf860

Please sign in to comment.