Skip to content

Commit fa2e4f8

Browse files
committed
SF-50 | add responsiveness to director screen
1 parent 4fa93d1 commit fa2e4f8

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

packages/webui/src/client/styles/countdown/director.scss

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,15 @@ $hold-status-color: $liveline-timecode-color;
4646
.director-screen__top__planned-to {
4747
text-align: center;
4848
}
49-
.director-screen__top__planned-since {
50-
margin-left: -50px;
51-
}
5249

5350
.director-screen__top__over-under {
5451
margin-left: 5vw;
5552
}
53+
54+
.director-screen__top__planned-container {
55+
display: flex;
56+
flex-direction: column;
57+
}
5658
}
5759

5860
.director-screen__body {
@@ -73,10 +75,7 @@ $hold-status-color: $liveline-timecode-color;
7375

7476
.director-screen__body__part {
7577
display: grid;
76-
grid-template:
77-
24em
78-
80em
79-
20em / min(13vw, 27vh) auto;
78+
grid-template: 24em 80em 20em / max(13vw, 27vh) auto;
8079
white-space: nowrap;
8180

8281
.director-screen__body__segment-name {
@@ -208,14 +207,14 @@ $hold-status-color: $liveline-timecode-color;
208207
text-align: center;
209208
width: 100vw;
210209
margin-left: -13vw;
211-
210+
212211
.director-screen__body__part__timeto-name {
213212
color: #888;
214213
font-size: 9.63em;
215214
text-transform: uppercase;
216215
margin-top: -2vh;
217216
}
218-
217+
219218
.director-screen__body__part__timeto-countdown {
220219
margin-top: 4vh;
221220
grid-row: inherit;

packages/webui/src/client/styles/counterComponents.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
.counter-component__over-under {
77
font-family: 'Roboto Flex';
88
font-style: normal;
9-
font-size: 7.5rem;
9+
font-size: clamp(3rem, 5dvw + 1rem, 7.5rem);
1010
font-weight: 500;
1111
line-height: 100%;
1212
font-feature-settings:

packages/webui/src/client/ui/ClockView/DirectorScreen.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,15 +385,15 @@ function DirectorScreenRender({
385385
</div>
386386
) : null}
387387
{expectedEnd ? (
388-
<div className="director-screen__top__time-to">
388+
<div className="director-screen__top__time-to director-screen__top__planned-container">
389389
<div>
390390
<TimeToPlannedEndComponent value={now - expectedEnd} />
391391
</div>
392392
<span className="director-screen__top__planned-to">{t('Time to planned end')}</span>
393393
</div>
394394
) : (
395395
<div>
396-
<div>
396+
<div className="director-screen__top__planned-container">
397397
<TimeSincePlannedEndComponent value={getCurrentTime() - (expectedStart + expectedDuration)} />
398398
<span className="director-screen__top__planned-since">{t('Time since planned end')}</span>
399399
</div>

0 commit comments

Comments
 (0)