File tree 7 files changed +35
-16
lines changed
7 files changed +35
-16
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,11 @@ const onBack = () => {
131
131
@mouseenter =" footerOpen = true"
132
132
@mouseleave =" footerOpen = false"
133
133
>
134
- <CheckinComponent v-if =" isAuthenticated" :parent-element =" footerRef" />
134
+ <CheckinComponent
135
+ v-if =" isAuthenticated"
136
+ :parent-element =" footerRef"
137
+ :reverse =" reverse"
138
+ />
135
139
</footer >
136
140
<DebugProvider />
137
141
</RouterView >
Original file line number Diff line number Diff line change @@ -77,19 +77,13 @@ const emit = defineEmits<{
77
77
}
78
78
79
79
& .reverse {
80
- $navbar-offset : calc (
81
- #{layout .$header-navbar-height } + #{layout .$safe-area-inset-bottom / 1.5 }
82
- );
83
-
84
80
right : 1.5rem ;
85
- bottom : calc (1rem + #{$ navbar-offset } );
81
+ bottom : calc (1rem + #{layout . $header- navbar-height } );
86
82
transition-delay : 0.5s ;
87
83
88
84
& .open {
89
- $navbar-open-offset : calc (#{layout .$header-drawer-height } + #{$navbar-offset } );
90
-
91
85
right : 1.5rem ;
92
- bottom : calc (1rem + #{$navbar -open-offset } );
86
+ bottom : calc (1rem + #{layout . $header -open-drawer-height } );
93
87
transition-delay : 0s ;
94
88
}
95
89
}
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ onBeforeMount(() => addCustomProgressProperty());
151
151
top : layout .$safe-navbar-height ;
152
152
153
153
& .drawer-visible {
154
- top : layout .$header-open-drawer-height ;
154
+ top : layout .$safe- header-open-drawer-height ;
155
155
}
156
156
157
157
& .floating {
@@ -186,7 +186,7 @@ onBeforeMount(() => addCustomProgressProperty());
186
186
top : calc (#{layout .$safe-navbar-height } + 12px );
187
187
188
188
& .drawer-visible {
189
- top : calc (#{layout .$header-open-drawer-height } + 12px );
189
+ top : calc (#{layout .$safe- header-open-drawer-height } + 12px );
190
190
}
191
191
192
192
& .floating {
Original file line number Diff line number Diff line change @@ -24,6 +24,11 @@ const props = defineProps({
24
24
type: HTMLElement ,
25
25
required: false ,
26
26
},
27
+ reverse: {
28
+ type: Boolean ,
29
+ required: false ,
30
+ default: false ,
31
+ },
27
32
});
28
33
29
34
const i18n = useI18n (' watching' );
@@ -146,7 +151,11 @@ const onClick = () => {
146
151
147
152
<template >
148
153
<div class =" wrapper" >
149
- <div class =" container" :class =" { watching: isWatching, offset }" @click =" onClick" >
154
+ <div
155
+ class =" container"
156
+ :class =" { watching: isWatching, offset, reverse }"
157
+ @click =" onClick"
158
+ >
150
159
<span class =" left" >
151
160
<NIcon class =" icon" :component =" icon" />
152
161
<div class =" column" >
@@ -401,6 +410,17 @@ const onClick = () => {
401
410
}
402
411
}
403
412
}
413
+
414
+ & .reverse {
415
+ height : layout .$watching-height ;
416
+ padding-top : calc (#{layout .$safe-area-inset-top / 1.5 } );
417
+
418
+ & :active ,
419
+ & :focus-within ,
420
+ & :hover {
421
+ height : layout .$watching-open-height ;
422
+ }
423
+ }
404
424
}
405
425
406
426
@media (width <= 600px ) {
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ const open = ref(false);
128
128
flex-wrap : wrap ;
129
129
justify-content : center ;
130
130
max-width : min (36.5rem , 100 dvw );
131
- max-height : calc (var (--full-height ) - #{layout .$header-open-drawer-height } );
131
+ max-height : calc (var (--full-height ) - #{layout .$safe- header-open-drawer-height } );
132
132
overflow : auto ;
133
133
scrollbar-width : thin ;
134
134
}
Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ onDeactivated(() => {
237
237
margin-bottom : layout .$header-navbar-height ;
238
238
239
239
.card :first-child {
240
- margin-top : 0.5 rem ;
240
+ margin-top : calc ( #{ layout . $safe-area-inset-top / 2 } ) ;
241
241
}
242
242
}
243
243
}
Original file line number Diff line number Diff line change @@ -6,9 +6,10 @@ $safe-area-inset-left: var(--safe-area-inset-left);
6
6
7
7
// Element heights
8
8
$header-navbar-height : 2.75rem ;
9
- $safe-navbar-height : calc (#{$header-navbar-height } + #{$safe-area-inset-top } );
10
9
$header-drawer-height : 3.5rem ;
11
- $header-open-drawer-height : calc (#{$safe-navbar-height } + #{$header-drawer-height } );
10
+ $header-open-drawer-height : calc (#{$header-navbar-height } + #{$header-drawer-height } );
11
+ $safe-navbar-height : calc (#{$header-navbar-height } + #{$safe-area-inset-top } );
12
+ $safe-header-open-drawer-height : calc (#{$safe-navbar-height } + #{$header-drawer-height } );
12
13
$safe-content-height : calc (var (--full-height ) - #{$safe-navbar-height } );
13
14
$safe-full-height : calc (var (--full-height ) - #{$safe-area-inset-top } );
14
15
You can’t perform that action at this time.
0 commit comments