@@ -93,7 +93,7 @@ const onBack = () => {
93
93
<RouterView v-slot =" { Component }" >
94
94
<main
95
95
ref =" mainRef"
96
- :class =" { 'full-height': !isAuthenticated, ' loading' : !Component }"
96
+ :class =" { loading: !Component }"
97
97
@touchstart.passive =" NavbarService.hideDrawer"
98
98
>
99
99
<GridBackground v-if =" !Component" :size =" 20" />
@@ -192,22 +192,12 @@ const onBack = () => {
192
192
flex-direction : column ;
193
193
align-items : center ;
194
194
justify-content : center ;
195
- min-height : layout .$safe-content-height ;
196
- margin-top : layout .$safe-navbar-height ;
195
+ min-height : layout .$content-height ;
197
196
padding-right : calc (#{layout .$safe-area-inset-right } / 1.5 );
198
197
padding-left : calc (#{layout .$safe-area-inset-left } / 1.5 );
199
198
transition :
200
199
min-height 0.5s var (--n-bezier ),
201
200
margin-top 0.5s var (--n-bezier );
202
-
203
- & .full-height {
204
- min-height : var (--full-height );
205
- margin-top : 0 ;
206
-
207
- :deep (.loading-container ) {
208
- padding-top : layout .$safe-navbar-height ;
209
- }
210
- }
211
201
}
212
202
213
203
footer {
@@ -218,10 +208,15 @@ const onBack = () => {
218
208
}
219
209
220
210
:deep (.root-panel-wrapper.n-drawer ) {
211
+ padding-top : layout .$safe-navbar-height ;
221
212
transition : all 0.3s var (--n-bezier );
222
213
223
214
.n-drawer-content-wrapper {
224
215
overscroll-behavior : none ;
216
+
217
+ .loading-container {
218
+ min-height : calc (var (--height-90-dvh ) - #{layout .$safe-navbar-height } );
219
+ }
225
220
}
226
221
}
227
222
@@ -231,17 +226,28 @@ const onBack = () => {
231
226
}
232
227
}
233
228
229
+ & .floating {
230
+ header {
231
+ top : layout .$floating-navbar-offset ;
232
+ left : calc (50% - #{layout .$floating-navbar-width } / 2 );
233
+ width : layout .$floating-navbar-width ;
234
+ }
235
+ }
236
+
234
237
& .reverse {
235
238
header {
236
239
top : auto ;
237
- bottom : calc (0% - #{layout .$safe-area-inset-bottom } );
240
+ bottom : calc (0% - #{layout .$safe-area-inset-top } );
238
241
flex-direction : column-reverse ;
242
+
243
+ > :first-child {
244
+ padding-bottom : calc (#{layout .$safe-area-inset-bottom / 2 } );
245
+ }
239
246
}
240
247
241
248
main {
242
- min-height : layout .$bottom-content-height ;
249
+ min-height : layout .$safe- bottom-content-height ;
243
250
margin-top : 0 ;
244
- margin-bottom : layout .$safe-navbar-height ;
245
251
}
246
252
247
253
footer {
@@ -250,7 +256,10 @@ const onBack = () => {
250
256
}
251
257
252
258
:deep (.root-panel-wrapper.n-drawer ) {
253
- padding-bottom : layout .$header-navbar-height ;
259
+ padding-top : layout .$safe-area-inset-top ;
260
+ padding-bottom : calc (
261
+ #{layout .$safe-navbar-height } + #{layout .$safe-area-inset-bottom / 2 }
262
+ );
254
263
}
255
264
256
265
& .watching {
@@ -259,22 +268,5 @@ const onBack = () => {
259
268
}
260
269
}
261
270
}
262
-
263
- & .floating {
264
- header {
265
- top : layout .$floating-navbar-offset ;
266
- left : calc (50% - #{layout .$floating-navbar-width } / 2 );
267
- width : layout .$floating-navbar-width ;
268
- }
269
-
270
- main {
271
- min-height : var (--full-height );
272
- margin-top : 0 ;
273
- }
274
-
275
- :deep (.root-panel-wrapper.n-drawer ) {
276
- margin-top : layout .$floating-navbar-height ;
277
- }
278
- }
279
271
}
280
272
</style >
0 commit comments