Skip to content

Commit 22966e2

Browse files
committed
SF-50 | add responsiveness to director screen
1 parent fa98e3e commit 22966e2

File tree

3 files changed

+21
-17
lines changed

3 files changed

+21
-17
lines changed

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

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ $hold-status-color: $liveline-timecode-color;
3131
align-items: center;
3232
background-color: #3f3f3f;
3333
color: #888;
34-
font-size: 2.6em;
34+
font-size: 3.8vh;
3535
padding: 0 0.2em;
3636
text-transform: uppercase;
3737

@@ -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 {
@@ -88,7 +87,8 @@ $hold-status-color: $liveline-timecode-color;
8887
align-items: center;
8988
color: #fff;
9089
position: relative;
91-
font-size: 100px;
90+
font-size: 8vh;
91+
line-height: 11vh;
9292
height: 11vh;
9393
letter-spacing: 0.01em;
9494
font-feature-settings:
@@ -128,7 +128,7 @@ $hold-status-color: $liveline-timecode-color;
128128
align-items: center;
129129
padding-right: 30px;
130130

131-
font-size: 110px;
131+
font-size: 10vh;
132132
color: $general-countdown-to-next-color;
133133
font-variation-settings:
134134
'GRAD' 0,
@@ -208,14 +208,14 @@ $hold-status-color: $liveline-timecode-color;
208208
text-align: center;
209209
width: 100vw;
210210
margin-left: -13vw;
211-
211+
212212
.director-screen__body__part__timeto-name {
213213
color: #888;
214214
font-size: 9.63em;
215215
text-transform: uppercase;
216216
margin-top: -2vh;
217217
}
218-
218+
219219
.director-screen__body__part__timeto-countdown {
220220
margin-top: 4vh;
221221
grid-row: inherit;
@@ -456,10 +456,9 @@ $hold-status-color: $liveline-timecode-color;
456456
grid-column: 1;
457457
margin-top: -50px;
458458
text-align: left;
459-
font-size: 2.2rem;
459+
font-size: clamp(1.5rem, 1.8vw, 2.2rem);
460460
font-weight: 900;
461461
color: #000;
462-
padding-top: 5px;
463462
padding-left: 8px;
464463
padding-right: 20px;
465464
width: fit-content;
@@ -481,4 +480,9 @@ $hold-status-color: $liveline-timecode-color;
481480
font-weight: 600;
482481
}
483482
}
483+
484+
.clock-view-piece-icon,
485+
.clock-view-piece-icon > span {
486+
width: 10.78vw !important;
487+
}
484488
}

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)