1
0
Fork 0

Fix menu items not stretching when it's only one

This commit is contained in:
Lim Chee Aun 2023-08-09 19:59:06 +08:00
parent 889fdc87a1
commit 84d1500331

View file

@ -1538,6 +1538,9 @@ body > .szh-menu-container {
/* two columns only */
grid-template-columns: repeat(2, 1fr);
}
.szh-menu .menu-horizontal:has(> .szh-menu__item:only-child) {
grid-template-columns: 1fr;
}
.szh-menu .menu-horizontal > .szh-menu__item:not(:only-child):first-child,
.szh-menu .menu-horizontal > *:not(:only-child):first-child .szh-menu__item {
padding-right: 4px !important;