File tree 1 file changed +11
-6
lines changed
1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 69
69
}
70
70
}
71
71
</MList >
72
-
73
72
</MNavigationDrawer >
74
73
75
- <MButton Small Fab Color =" primary" Style =" @($" bottom:58px;z-index:7;position: fixed;left:{ButtonLeft}px; " )" OnClick =Switch >
76
- <MIcon Class =" white--text" >
77
- @( GlobalConfig .NavigationMini ? " mdi-chevron-right" : " mdi-chevron-left" )
78
- </MIcon >
79
- </MButton >
74
+ @if (! (Masa .Breakpoint .Mobile && Visible is true ))
75
+ {
76
+ <MButton Small Fab Color =" primary" OnClick =Switch Style =" @($" bottom:58px;z-index:7;position: fixed;left:{ButtonLeft}px; " )" >
77
+ <MIcon Class =" white--text" >
78
+ @( Visible is false || GlobalConfig .NavigationMini ? " mdi-chevron-right" : " mdi-chevron-left" )
79
+ </MIcon >
80
+ </MButton >
81
+ }
80
82
81
83
@code {
84
+ [Inject ]
85
+ public MasaBlazor Masa { get ; set ; } = default ! ;
86
+
82
87
public bool Visible { get ; set ; } = true ;
83
88
84
89
public int ButtonLeft => ! Visible ? - 14 : GlobalConfig .NavigationMini ? 60 : 280 ;
You can’t perform that action at this time.
0 commit comments