Fix dangling lonely dividers in menu with CSS

The if conditions are too maddening at this point
This commit is contained in:
Lim Chee Aun 2024-11-20 20:49:18 +08:00
parent 8b806d55f3
commit deaddcec00

View file

@ -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;