Skip to content

Commit

Permalink
Fix dangling lonely dividers in menu with CSS
Browse files Browse the repository at this point in the history
The if conditions are too maddening at this point
  • Loading branch information
cheeaun committed Nov 20, 2024
1 parent 8b806d5 commit deaddce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -2077,6 +2077,11 @@ body > .szh-menu-container {
.szh-menu__divider {
background-color: var(--divider-color);
margin-block: 4px;

> &:first-child,
li[role='none']:first-child + & {
display: none;
}
}
.szh-menu .szh-menu__item .menu-grow {
flex-grow: 1;
Expand Down

0 comments on commit deaddce

Please sign in to comment.