Skip to content

Commit 884cb66

Browse files
committed
SOFIE-261 | change alignment of t-timers in rundown screen
1 parent 7a3ceca commit 884cb66

File tree

3 files changed

+19
-34
lines changed

3 files changed

+19
-34
lines changed

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

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ body.no-overflow {
275275
}
276276

277277
.timing__header__center {
278+
position: relative;
278279
display: flex;
279280
justify-content: center;
280281
align-items: center;
@@ -3585,25 +3586,29 @@ svg.icon {
35853586
@import 'rundownOverview';
35863587

35873588
.rundown-header .timing__header_t-timers {
3589+
position: absolute;
3590+
right: 100%;
3591+
top: 50%;
3592+
transform: translateY(-38%);
35883593
display: flex;
35893594
flex-direction: column;
35903595
justify-content: center;
3596+
align-items: flex-end;
35913597
margin-right: 1em;
3592-
padding-left: 1em;
3593-
text-align: right;
3594-
align-self: center;
3595-
width: fit-content;
35963598

35973599
.timing__header_t-timers__timer {
35983600
display: flex;
35993601
gap: 0.5em;
36003602
justify-content: space-between;
36013603
align-items: baseline;
3604+
white-space: nowrap;
3605+
line-height: 1.3;
36023606

36033607
.timing__header_t-timers__timer__label {
36043608
font-size: 0.7em;
36053609
color: #b8b8b8;
36063610
text-transform: uppercase;
3611+
white-space: nowrap;
36073612
}
36083613

36093614
.timing__header_t-timers__timer__value {
@@ -3614,20 +3619,24 @@ svg.icon {
36143619
sans-serif;
36153620
font-variant-numeric: tabular-nums;
36163621
font-weight: 500;
3617-
color: $general-clock;
3622+
color: #fff;
36183623
font-size: 1.1em;
36193624
}
36203625

36213626
.timing__header_t-timers__timer__sign {
3622-
margin-right: 0.2em;
3623-
font-weight: 700;
3627+
display: inline-block;
3628+
width: 0.6em;
3629+
text-align: center;
3630+
font-weight: 500;
3631+
font-size: 0.9em;
36243632
color: #fff;
3633+
margin-right: 0.3em;
36253634
}
36263635

36273636
.timing__header_t-timers__timer__part {
3628-
color: white;
3637+
color: #fff;
36293638
&.timing__header_t-timers__timer__part--dimmed {
3630-
color: #888; // Dimmed color for "00"
3639+
color: #888;
36313640
font-weight: 400;
36323641
}
36333642
}

packages/webui/src/client/ui/RundownView/RundownHeader/RundownHeaderTimers.tsx

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -11,30 +11,6 @@ interface IProps {
1111
export const RundownHeaderTimers: React.FC<IProps> = ({ tTimers }) => {
1212
useTiming()
1313

14-
// TODO: Remove this mock data once verified
15-
const mockTimers = React.useMemo<[RundownTTimer, RundownTTimer, RundownTTimer]>(() => {
16-
const now = Date.now()
17-
return [
18-
{
19-
index: 1,
20-
label: 'Timer 1',
21-
mode: { type: 'freeRun', startTime: now - 60000 },
22-
},
23-
{
24-
index: 2,
25-
label: 'Timer 2',
26-
mode: { type: 'countdown', startTime: now, duration: 300000, pauseTime: null, stopAtZero: false },
27-
},
28-
{
29-
index: 3,
30-
label: 'Timer 3',
31-
mode: { type: 'countdown', startTime: now - 10000, duration: 5000, pauseTime: null, stopAtZero: true },
32-
},
33-
]
34-
}, [])
35-
36-
tTimers = mockTimers
37-
3814
const hasActiveTimers = tTimers.some((t) => t.mode)
3915

4016
if (!hasActiveTimers) return null

packages/webui/src/client/ui/RundownView/RundownHeader/TimingDisplay.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ export function TimingDisplay({
5151
<div className="timing__header__left">
5252
<PlaylistStartTiming rundownPlaylist={rundownPlaylist} hideDiff={true} />
5353
<RundownName rundownPlaylist={rundownPlaylist} currentRundown={currentRundown} rundownCount={rundownCount} />
54-
<RundownHeaderTimers tTimers={rundownPlaylist.tTimers} />
5554
</div>
5655
<div className="timing__header__center">
56+
<RundownHeaderTimers tTimers={rundownPlaylist.tTimers} />
5757
<TimeOfDay />
5858
</div>
5959
<div className="timing__header__right">

0 commit comments

Comments
 (0)