File tree Expand file tree Collapse file tree 1 file changed +21
-5
lines changed
Expand file tree Collapse file tree 1 file changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -48,14 +48,30 @@ export default function SideMenu() {
4848 < Box sx = { { overflow : 'auto' } } >
4949 < List >
5050 { menuItems . map ( ( item , index ) => (
51- < ListItem key = { item . text } disablePadding style = { { 'borderLeft' : context . pageTitle === item . text . toLowerCase ( ) ? 'thick solid #1976d2' : 'none' } } >
52- < ListItemButton href = { item . href } >
53- < ListItemIcon >
54- { item . icon }
51+ < ListItem key = { item . text } disablePadding >
52+ < ListItemButton
53+ href = { item . href }
54+ sx = { {
55+ boxShadow :
56+ context . pageTitle === item . text . toLowerCase ( )
57+ ? 'inset 4px 0 0 #1976d2'
58+ : 'inset 4px 0 0 transparent' ,
59+ } }
60+ >
61+ < ListItemIcon
62+ sx = { {
63+ minWidth : 40 ,
64+ display : 'flex' ,
65+ justifyContent : 'center' ,
66+ } }
67+ >
68+ { item . icon }
5569 </ ListItemIcon >
70+
5671 < ListItemText primary = { item . displayText } />
5772 </ ListItemButton >
58- </ ListItem >
73+ </ ListItem >
74+
5975 ) ) }
6076 </ List >
6177
You can’t perform that action at this time.
0 commit comments