Skip to content

Commit 6a9629b

Browse files
committed
wip: segment timing
1 parent 5a01c82 commit 6a9629b

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ $hold-status-color: $liveline-timecode-color;
1414
}
1515

1616
.director-screen {
17+
font-family: Roboto Flex;
18+
1719
.director-screen__header {
1820
display: flex;
1921
flex-direction: row;
@@ -45,11 +47,11 @@ $hold-status-color: $liveline-timecode-color;
4547
.director-screen__body__part {
4648
display: grid;
4749
grid-template:
48-
16em
50+
22em
4951
4fr
5052
6fr / 13vw auto;
5153
grid-template:
52-
16em
54+
22em
5355
4fr
5456
6fr / #{'min(13vw, 27vh)'} auto;
5557

@@ -58,7 +60,7 @@ $hold-status-color: $liveline-timecode-color;
5860
grid-column: 1 / -1;
5961
text-align: left;
6062
padding-left: 10px;
61-
font-size: 16em;
63+
font-size: 20em;
6264
font-weight: 500;
6365
line-height: 100%;
6466
letter-spacing: 0%;
@@ -75,6 +77,10 @@ $hold-status-color: $liveline-timecode-color;
7577
color: #000;
7678
}
7779
}
80+
.director-screen__body__segment__countdown {
81+
float: right;
82+
margin-right: 10px;
83+
}
7884

7985
.director-screen__body__rundown-countdown {
8086
grid-row: 2 / -1;

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,6 @@ function DirectorScreenRender({
352352

353353
const expectedStart = PlaylistTiming.getExpectedStart(playlist.timing)
354354
const expectedEnd = PlaylistTiming.getExpectedEnd(playlist.timing) || 0
355-
const expectedDuration = PlaylistTiming.getExpectedDuration(playlist.timing)
356355

357356
const overUnderClock = getPlaylistTimingDiff(playlist, timingDurations) ?? 0
358357

@@ -394,7 +393,14 @@ function DirectorScreenRender({
394393
live: currentSegment !== undefined,
395394
})}
396395
>
397-
{currentSegment?.name}
396+
<span>{currentSegment?.name}</span>
397+
<span className="director-screen__body__segment__countdown">
398+
<CurrentPartOrSegmentRemaining
399+
currentPartInstanceId={playlist.currentPartInfo?.partInstanceId || null}
400+
heavyClassName="overtime"
401+
preferSegmentTime={true}
402+
/>
403+
</span>
398404
</div>
399405
{currentPartInstance && currentShowStyleBaseId ? (
400406
<>

0 commit comments

Comments
 (0)