Skip to content

Commit 0f330fe

Browse files
committed
Work on notch detection (#368)
1 parent dfb553d commit 0f330fe

File tree

2 files changed

+10
-12
lines changed

2 files changed

+10
-12
lines changed

frontend/src/lib/components/search-box/search-box.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,16 +307,19 @@
307307
pointer-events: none;
308308
}
309309
}
310+
311+
> .card-body {
312+
margin-left: var(--facilmap-inset-left, 0px);
313+
margin-right: var(--facilmap-inset-right, 0px);
314+
margin-bottom: var(--facilmap-inset-bottom, 0px);
315+
}
310316
}
311317
312318
> .card-body {
313319
display: flex;
314320
flex-direction: column;
315321
min-height: 0;
316322
overflow: auto;
317-
margin-left: var(--facilmap-inset-left, 0px);
318-
margin-right: var(--facilmap-inset-right, 0px);
319-
margin-bottom: var(--facilmap-inset-bottom, 0px);
320323
}
321324
322325
> .card-header {

frontend/src/map/map.ejs

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,10 @@
3030
3131
html {
3232
height: 100%;
33-
}
34-
35-
@supports(padding:max(0px)) {
36-
html {
37-
--facilmap-inset-top: env(safe-area-inset-top, 0px);
38-
--facilmap-inset-right: env(safe-area-inset-right, 0px);
39-
--facilmap-inset-bottom: env(safe-area-inset-bottom, 0px);
40-
--facilmap-inset-left: env(safe-area-inset-left, 0px);
41-
}
33+
--facilmap-inset-top: env(safe-area-inset-top, 0px);
34+
--facilmap-inset-right: env(safe-area-inset-right, 0px);
35+
--facilmap-inset-bottom: env(safe-area-inset-bottom, 0px);
36+
--facilmap-inset-left: env(safe-area-inset-left, 0px);
4237
}
4338
4439
#loading {

0 commit comments

Comments
 (0)