Improve previous change here (overflow:hidden) to also do whiteSpace:wrap and fix lineHeight

This commit is contained in:
2023-11-22 11:43:30 -06:00
parent c31db7ac32
commit 2ace79c08a

View File

@ -64,7 +64,7 @@ function collapseItem(theme: Theme, ownerState: any)
borderRadius: borderRadius.md,
cursor: "pointer",
userSelect: "none",
whiteSpace: "nowrap",
whiteSpace: "wrap",
overflow: "hidden",
boxShadow: active && !whiteSidenav && !darkMode && !transparentSidenav ? md : "none",
[breakpoints.up("xl")]: {
@ -74,6 +74,10 @@ function collapseItem(theme: Theme, ownerState: any)
}),
},
"& .MuiListItemText-primary": {
lineHeight: "revert"
},
"&:hover, &:focus": {
backgroundColor:
transparentSidenav && !darkMode