File tree 7 files changed +26
-14
lines changed
7 files changed +26
-14
lines changed Original file line number Diff line number Diff line change @@ -183,15 +183,15 @@ const onBack = () => {
183
183
flex-direction : column ;
184
184
align-items : center ;
185
185
justify-content : center ;
186
- min-height : calc ( var ( --full-height ) - #{ layout .$header-navbar -height } ) ;
187
- margin-top : layout .$header -navbar-height ;
186
+ min-height : layout .$main-content -height ;
187
+ margin-top : layout .$safe -navbar-height ;
188
188
189
189
& .full-height {
190
190
min-height : var (--full-height );
191
191
margin-top : 0 ;
192
192
193
193
:deep (.loading-container ) {
194
- padding-top : layout .$header -navbar-height ;
194
+ padding-top : layout .$safe -navbar-height ;
195
195
}
196
196
}
197
197
}
@@ -205,7 +205,7 @@ const onBack = () => {
205
205
206
206
.panel {
207
207
position : relative ;
208
- max-height : calc (100% - #{layout .$header -navbar-height } );
208
+ max-height : calc (100% - #{layout .$safe -navbar-height } );
209
209
overflow : auto ;
210
210
211
211
& -header {
Original file line number Diff line number Diff line change @@ -228,8 +228,8 @@ const isEmpty = computed(() => !items.value.length && !loading.value);
228
228
@include animation .fade-in ;
229
229
230
230
.list-scroll {
231
- height : calc (var (--full-height ) - 8px );
232
- margin-top : - #{layout .$header -navbar-height } ;
231
+ height : calc (var (--full-height-absolute ) - 8px );
232
+ margin-top : calc ( 0 % - #{layout .$safe -navbar-height } ) ;
233
233
margin-bottom : 8px ;
234
234
235
235
.load-more {
Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ onBeforeMount(() => addCustomProgressProperty());
135
135
layout .$navbar-transition-delay-visible }
136
136
);
137
137
138
- top : layout .$header -navbar-height ;
138
+ top : layout .$safe -navbar-height ;
139
139
140
140
& .drawer-visible {
141
141
top : layout .$header-open-drawer-height ;
@@ -156,7 +156,7 @@ onBeforeMount(() => addCustomProgressProperty());
156
156
layout .$navbar-transition-delay-visible }
157
157
);
158
158
159
- top : calc (#{layout .$header -navbar-height } + 12px );
159
+ top : calc (#{layout .$safe -navbar-height } + 12px );
160
160
161
161
& .drawer-visible {
162
162
top : calc (#{layout .$header-open-drawer-height } + 12px );
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ const openRelease = (url?: string) => {
127
127
128
128
.container {
129
129
width : 100% ;
130
- height : calc ( var ( --full-height ) - #{ layout .$header-navbar -height } ) ;
130
+ height : layout .$main-content -height ;
131
131
background : transparent ;
132
132
133
133
.card {
Original file line number Diff line number Diff line change @@ -136,14 +136,14 @@ onDeactivated(() => {
136
136
.container {
137
137
width : 100% ;
138
138
height : var (--full-height );
139
- margin-top : - #{layout .$header -navbar-height } ;
139
+ margin-top : calc ( 0 % - #{layout .$safe -navbar-height } ) ;
140
140
background : transparent ;
141
141
142
142
.card {
143
143
@include mixin .hover-background ($from : var (--bg-black-50 ), $to : var (--bg-color-80 ));
144
144
145
145
z-index : var (--length );
146
- scroll-margin-top : calc (#{layout .$header -navbar-height } + 1rem );
146
+ scroll-margin-top : calc (#{layout .$safe -navbar-height } + 1rem );
147
147
148
148
& :not (:last-child ) {
149
149
z-index : calc (var (--length ) - var (--index ));
@@ -164,7 +164,7 @@ onDeactivated(() => {
164
164
.menu {
165
165
@include mixin .hover-background ;
166
166
167
- height : calc ( var ( --full-height ) - #{ layout .$header-navbar -height } ) ;
167
+ height : layout .$main-content -height ;
168
168
padding : 0.5rem ;
169
169
}
170
170
@@ -175,7 +175,7 @@ onDeactivated(() => {
175
175
176
176
.menu ,
177
177
.content .card :first-child {
178
- margin-top : layout .$header -navbar-height ;
178
+ margin-top : layout .$safe -navbar-height ;
179
179
}
180
180
}
181
181
</style >
Original file line number Diff line number Diff line change 2
2
:host {
3
3
/* height */
4
4
--full-height : 100 dvh;
5
+ --full-height-absolute : 100vh ;
5
6
--half-height : 50 dvh;
6
7
--height-40-dvh : 40 dvh;
7
8
--height-70-dvh : 70 dvh;
Original file line number Diff line number Diff line change
1
+ // Pwa safe areas
2
+ $safe-area-inset-top : env (safe-area-inset-top );
3
+ $safe-area-inset-right : env (safe-area-inset-right );
4
+ $safe-area-inset-bottom : env (safe-area-inset-bottom );
5
+ $safe-area-inset-left : env (safe-area-inset-left );
6
+
7
+ // Element heights
1
8
$header-navbar-height : 2.75rem ;
9
+ $safe-navbar-height : calc (#{$header-navbar-height } + #{$safe-area-inset-top } );
2
10
$header-drawer-height : 3.5rem ;
3
- $header-open-drawer-height : calc (#{$header-navbar-height } + #{$header-drawer-height } );
11
+ $header-open-drawer-height : calc (#{$safe-navbar-height } + #{$header-drawer-height } );
12
+ $main-content-height : calc (var (--full-height ) - #{$safe-navbar-height } );
13
+
14
+ // Navbar transition
4
15
$navbar-transition : 0.5s var (--n-bezier );
5
16
$navbar-transition-visible : 0.25s var (--n-bezier );
6
17
$navbar-transition-delay : 0.5s ;
You can’t perform that action at this time.
0 commit comments