Skip to content

Commit 5f4e24e

Browse files
committed
feat: add autonext status to piece part counter
1 parent 5bed05b commit 5f4e24e

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,17 +214,31 @@ $hold-status-color: $liveline-timecode-color;
214214
'YTLC' 514, 'YTUC' 712, 'opsz' 120, 'slnt' 0, 'wdth' 70, 'wght' 500;
215215
padding: 0 0.1em;
216216
line-height: 1em;
217+
display: flex;
218+
align-items: center;
217219

218220
> .overtime {
219221
color: $general-late-color;
220222
font-variation-settings: 'GRAD' 0, 'XOPQ' 96, 'XTRA' 468, 'YOPQ' 79, 'YTAS' 750, 'YTDE' -203, 'YTFI' 738,
221223
'YTLC' 514, 'YTUC' 712, 'opsz' 100, 'slnt' 0, 'wdth' 70, 'wght' 600;
222224
}
223225

226+
.auto-next-status {
227+
font-size: 0.5em;
228+
margin-left: 0.2em;
229+
margin-top: -4vh;
230+
color: $general-next-color;
231+
font-variation-settings: 'GRAD' 0, 'XOPQ' 96, 'XTRA' 468, 'YOPQ' 79, 'YTAS' 750, 'YTDE' -203, 'YTFI' 738,
232+
'YTLC' 514, 'YTUC' 712, 'opsz' 100, 'slnt' -20, 'wdth' 70, 'wght' 600;
233+
}
234+
224235
.freeze-counter {
225236
color: #00bfff;
226237
margin-left: 4vw;
238+
display: flex;
239+
align-items: center;
227240
}
241+
228242
img.freeze-counter-icon {
229243
margin-top: -0.3em;
230244
width: 1em;

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ import {
4343
TimeToPlannedEndComponent,
4444
} from '../../lib/Components/CounterComponents'
4545
import { AdjustLabelFit } from '../util/AdjustLabelFit'
46+
import { AutoNextStatus } from '../RundownView/RundownTiming/AutoNextStatus'
4647

4748
interface SegmentUi extends DBSegment {
4849
items: Array<PartUi>
@@ -453,7 +454,10 @@ function DirectorScreenRender({
453454
<CurrentPartOrSegmentRemaining
454455
currentPartInstanceId={playlist.currentPartInfo?.partInstanceId ?? null}
455456
heavyClassName="overtime"
456-
/>{' '}
457+
/>
458+
<span className="auto-next-status">
459+
<AutoNextStatus />
460+
</span>{' '}
457461
<span className="freeze-counter">
458462
<PieceFreezeContainer
459463
partInstanceId={currentPartInstance.instance._id}

0 commit comments

Comments
 (0)