@@ -95,7 +95,7 @@ export const DefaultAppBar = function DefaultAppBar({
95
95
return (
96
96
< div
97
97
style = { style }
98
- className = { cls ( "w-full h-14 sm:h- 16 transition-all ease-in duration-75 absolute top-0 max-w-full overflow-x-auto no-scrollbar" ,
98
+ className = { cls ( "w-full h-16 transition-all ease-in duration-75 absolute top-0 max-w-full overflow-x-auto no-scrollbar" ,
99
99
"flex flex-row gap-2 px-4 items-center" ,
100
100
{
101
101
"pl-[19rem]" : drawerOpen && largeLayout ,
@@ -106,70 +106,70 @@ export const DefaultAppBar = function DefaultAppBar({
106
106
className ) } >
107
107
108
108
109
- { navigation && < div className = "mr-8 hidden lg:block" >
110
- < ReactLink
111
- className = "visited:text-inherit visited:dark:text-inherit"
112
- to = { navigation ?. basePath ?? "/" }
113
- >
114
- < div className = { "flex flex-row gap-4" } >
115
- { ! hasDrawer && ( logo
116
- ? < img src = { logo }
117
- alt = "Logo"
118
- className = { cls ( "w-[32px] h-[32px] object-contain" ) } />
119
- : < FireCMSLogo width = { "32px" } height = { "32px" } /> ) }
120
-
121
- { typeof title === "string"
122
- ? < Typography variant = "subtitle1"
123
- noWrap
124
- className = { cls ( "transition-all" , drawerOpen ? "ml-2" : "" ) } >
125
- { title }
126
- </ Typography >
127
- : title }
128
- </ div >
129
- </ ReactLink >
109
+ { navigation && < div className = "mr-8 hidden lg:block" >
110
+ < ReactLink
111
+ className = "visited:text-inherit visited:dark:text-inherit"
112
+ to = { navigation ?. basePath ?? "/" }
113
+ >
114
+ < div className = { "flex flex-row gap-4" } >
115
+ { ! hasDrawer && ( logo
116
+ ? < img src = { logo }
117
+ alt = "Logo"
118
+ className = { cls ( "w-[32px] h-[32px] object-contain" ) } />
119
+ : < FireCMSLogo width = { "32px" } height = { "32px" } /> ) }
120
+
121
+ { typeof title === "string"
122
+ ? < Typography variant = "subtitle1"
123
+ noWrap
124
+ className = { cls ( "transition-all" , drawerOpen ? "ml-2" : "" ) } >
125
+ { title }
126
+ </ Typography >
127
+ : title }
128
+ </ div >
129
+ </ ReactLink >
130
+ </ div > }
131
+
132
+ { startAdornment }
133
+
134
+ < div className = { "flex-grow" } />
135
+
136
+ { endAdornment &&
137
+ < ErrorBoundary >
138
+ { endAdornment }
139
+ </ ErrorBoundary > }
140
+
141
+ { includeModeToggle && < IconButton
142
+ color = "inherit"
143
+ aria-label = "Open drawer"
144
+ onClick = { toggleMode }
145
+ size = "large" >
146
+ { mode === "dark"
147
+ ? < DarkModeIcon />
148
+ : < LightModeIcon /> }
149
+ </ IconButton > }
150
+
151
+ < Menu trigger = { avatarComponent } >
152
+ { user && < div className = { "px-4 py-2 mb-2" } >
153
+ { user . displayName && < Typography variant = { "body1" } color = { "secondary" } >
154
+ { user . displayName }
155
+ </ Typography > }
156
+ { user . email && < Typography variant = { "body2" } color = { "secondary" } >
157
+ { user . email }
158
+ </ Typography > }
130
159
</ div > }
131
160
132
- { startAdornment }
133
-
134
- < div className = { "flex-grow" } />
135
-
136
- { endAdornment &&
137
- < ErrorBoundary >
138
- { endAdornment }
139
- </ ErrorBoundary > }
140
-
141
- { includeModeToggle && < IconButton
142
- color = "inherit"
143
- aria-label = "Open drawer"
144
- onClick = { toggleMode }
145
- size = "large" >
146
- { mode === "dark"
147
- ? < DarkModeIcon />
148
- : < LightModeIcon /> }
149
- </ IconButton > }
150
-
151
- < Menu trigger = { avatarComponent } >
152
- { user && < div className = { "px-4 py-2 mb-2" } >
153
- { user . displayName && < Typography variant = { "body1" } color = { "secondary" } >
154
- { user . displayName }
155
- </ Typography > }
156
- { user . email && < Typography variant = { "body2" } color = { "secondary" } >
157
- { user . email }
158
- </ Typography > }
159
- </ div > }
160
-
161
- { dropDownActions }
162
-
163
- { ! dropDownActions && < MenuItem onClick = { async ( ) => {
164
- await authController . signOut ( ) ;
165
- // replace current route with home
166
- navigate ( "/" ) ;
167
- } } >
168
- < LogoutIcon />
169
- Log Out
170
- </ MenuItem > }
171
-
172
- </ Menu >
161
+ { dropDownActions }
162
+
163
+ { ! dropDownActions && < MenuItem onClick = { async ( ) => {
164
+ await authController . signOut ( ) ;
165
+ // replace current route with home
166
+ navigate ( "/" ) ;
167
+ } } >
168
+ < LogoutIcon />
169
+ Log Out
170
+ </ MenuItem > }
171
+
172
+ </ Menu >
173
173
174
174
</ div >
175
175
) ;
0 commit comments