generated from Luis/nextjs-python-web-template
Style adjustments in sidebar collapsible menu
- collapse menu adjustments
This commit is contained in:
@@ -165,7 +165,7 @@ export function Sidebar(props: SidebarProps) {
|
|||||||
>
|
>
|
||||||
<ListItemIcon
|
<ListItemIcon
|
||||||
color="inherit"
|
color="inherit"
|
||||||
className="justify-center overflow-hidden text-white lg:justify-normal"
|
className="overflow-hidden text-white lg:justify-normal"
|
||||||
>
|
>
|
||||||
{menuEntry.icon}
|
{menuEntry.icon}
|
||||||
</ListItemIcon>
|
</ListItemIcon>
|
||||||
@@ -179,7 +179,7 @@ export function Sidebar(props: SidebarProps) {
|
|||||||
{collapseMenuOpen ? <ExpandLess /> : <ExpandMore />}
|
{collapseMenuOpen ? <ExpandLess /> : <ExpandMore />}
|
||||||
</ListItemButton>
|
</ListItemButton>
|
||||||
<Collapse
|
<Collapse
|
||||||
in={collapseMenuOpen}
|
in={collapseMenuOpen && show}
|
||||||
timeout="auto"
|
timeout="auto"
|
||||||
unmountOnExit
|
unmountOnExit
|
||||||
>
|
>
|
||||||
@@ -188,7 +188,7 @@ export function Sidebar(props: SidebarProps) {
|
|||||||
<ListItemButton
|
<ListItemButton
|
||||||
key={idx}
|
key={idx}
|
||||||
sx={{ pl: 4 }}
|
sx={{ pl: 4 }}
|
||||||
className="justify-center lg:justify-normal"
|
className="lg:justify-normal"
|
||||||
LinkComponent={Link}
|
LinkComponent={Link}
|
||||||
href={menuEntry.to}
|
href={menuEntry.to}
|
||||||
disabled={menuEntry.disabled}
|
disabled={menuEntry.disabled}
|
||||||
@@ -197,7 +197,7 @@ export function Sidebar(props: SidebarProps) {
|
|||||||
>
|
>
|
||||||
<ListItemIcon
|
<ListItemIcon
|
||||||
color="inherit"
|
color="inherit"
|
||||||
className="justify-center overflow-hidden text-white lg:justify-normal"
|
className="overflow-hidden text-white lg:justify-normal"
|
||||||
>
|
>
|
||||||
{menuEntry.icon}
|
{menuEntry.icon}
|
||||||
</ListItemIcon>
|
</ListItemIcon>
|
||||||
|
|||||||
Reference in New Issue
Block a user