+1
-1
frontend/src/app.html
+1
-1
frontend/src/app.html
+7
-2
frontend/src/lib/components/Player.svelte
+7
-2
frontend/src/lib/components/Player.svelte
···
303
<style>
304
.player {
305
position: fixed;
306
-
bottom: env(safe-area-inset-bottom, 0);
307
left: 0;
308
right: 0;
309
background: #1a1a1a;
310
border-top: 1px solid #333;
311
-
padding: 0.75rem 2rem 0.75rem 2rem;
312
z-index: 100;
313
}
314
315
.player-content {
···
596
@media (max-width: 768px) {
597
.player {
598
padding: 1rem;
599
}
600
601
.player-content {
···
303
<style>
304
.player {
305
position: fixed;
306
+
bottom: 0;
307
left: 0;
308
right: 0;
309
background: #1a1a1a;
310
border-top: 1px solid #333;
311
+
padding: 0.75rem 2rem;
312
+
padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
313
z-index: 100;
314
+
/* force player to stick to visual viewport bottom on iOS Chrome */
315
+
transform: translateZ(0);
316
+
-webkit-transform: translateZ(0);
317
}
318
319
.player-content {
···
600
@media (max-width: 768px) {
601
.player {
602
padding: 1rem;
603
+
padding-bottom: max(1rem, env(safe-area-inset-bottom));
604
}
605
606
.player-content {