css changes to ensure lower media controls don't end up cut off
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
+17
-16
@@ -1,7 +1,6 @@
|
|||||||
:root {
|
:root {
|
||||||
--bg-1: #f8f2e6;
|
--bg-1: #f8f2e6;
|
||||||
--bg-2: #dce9f4;
|
--bg-2: #dce9f4;
|
||||||
--card: #fff9f0;
|
|
||||||
--panel: #f9f8f3;
|
--panel: #f9f8f3;
|
||||||
--panel-line: #d8d1c4;
|
--panel-line: #d8d1c4;
|
||||||
--ink: #1f2633;
|
--ink: #1f2633;
|
||||||
@@ -9,7 +8,9 @@
|
|||||||
--primary: #0a5f94;
|
--primary: #0a5f94;
|
||||||
--primary-press: #084d79;
|
--primary-press: #084d79;
|
||||||
--disabled: #9fa9b8;
|
--disabled: #9fa9b8;
|
||||||
--controls-height: 10dvh;
|
--controls-height: 10svh;
|
||||||
|
--controls-safe: env(safe-area-inset-bottom);
|
||||||
|
--controls-total-height: calc(var(--controls-height) + var(--controls-safe));
|
||||||
}
|
}
|
||||||
|
|
||||||
* {
|
* {
|
||||||
@@ -32,15 +33,16 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.home-layout {
|
.home-layout {
|
||||||
height: 100dvh;
|
position: relative;
|
||||||
|
height: 100svh;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 1rem;
|
padding: 1rem;
|
||||||
padding-bottom: calc(var(--controls-height) + 1rem);
|
padding-bottom: calc(var(--controls-total-height) + 1rem);
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.website-zone {
|
.website-zone {
|
||||||
height: calc(100dvh - var(--controls-height) - 1rem);
|
height: 100%;
|
||||||
max-height: 90dvh;
|
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -97,9 +99,9 @@ body {
|
|||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
height: var(--controls-height);
|
height: var(--controls-total-height);
|
||||||
padding: 0.5rem 1rem;
|
padding: 0.5rem 1rem;
|
||||||
padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
|
padding-bottom: calc(0.5rem + var(--controls-safe));
|
||||||
border-top: 1px solid rgba(28, 41, 62, 0.16);
|
border-top: 1px solid rgba(28, 41, 62, 0.16);
|
||||||
background: linear-gradient(180deg, rgba(255, 250, 242, 0.95), rgba(239, 235, 225, 0.98));
|
background: linear-gradient(180deg, rgba(255, 250, 242, 0.95), rgba(239, 235, 225, 0.98));
|
||||||
backdrop-filter: blur(7px);
|
backdrop-filter: blur(7px);
|
||||||
@@ -119,6 +121,9 @@ body {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
color: var(--muted);
|
color: var(--muted);
|
||||||
font-size: clamp(0.8rem, 2.2vw, 1rem);
|
font-size: clamp(0.8rem, 2.2vw, 1rem);
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
.radio-controls__buttons {
|
.radio-controls__buttons {
|
||||||
@@ -163,11 +168,7 @@ body {
|
|||||||
@media (max-width: 560px) {
|
@media (max-width: 560px) {
|
||||||
.home-layout {
|
.home-layout {
|
||||||
padding: 0.65rem;
|
padding: 0.65rem;
|
||||||
padding-bottom: calc(var(--controls-height) + 0.65rem);
|
padding-bottom: calc(var(--controls-total-height) + 0.65rem);
|
||||||
}
|
|
||||||
|
|
||||||
.website-zone {
|
|
||||||
height: calc(100dvh - var(--controls-height) - 0.65rem);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.radio-controls-wrap {
|
.radio-controls-wrap {
|
||||||
@@ -176,11 +177,11 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.radio-controls {
|
.radio-controls {
|
||||||
grid-template-columns: 1fr;
|
grid-template-columns: minmax(0, 1fr) auto;
|
||||||
gap: 0.35rem;
|
gap: 0.5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.radio-controls__buttons {
|
.radio-controls__buttons {
|
||||||
justify-content: start;
|
justify-content: end;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user