From 6bcfd87851ae9efeb252ce5793537088e4c8992e Mon Sep 17 00:00:00 2001 From: Carlos Valente Date: Mon, 13 Jul 2026 17:28:27 +0200 Subject: [PATCH] refactor(rundown): show locked duration group indicator --- .../rundown-group/RundownGroup.module.scss | 11 ++++++++++ .../rundown/rundown-group/RundownGroup.tsx | 20 +++++++++++-------- 2 files changed, 23 insertions(+), 8 deletions(-) diff --git a/apps/client/src/features/rundown/rundown-group/RundownGroup.module.scss b/apps/client/src/features/rundown/rundown-group/RundownGroup.module.scss index f82a65f12..ad3e094cf 100644 --- a/apps/client/src/features/rundown/rundown-group/RundownGroup.module.scss +++ b/apps/client/src/features/rundown/rundown-group/RundownGroup.module.scss @@ -82,6 +82,17 @@ margin-right: 0.25rem; color: $ui-white; } + +.duration { + display: flex; + align-items: center; + gap: 0.25rem; +} + +.lockIcon { + opacity: 0.6; +} + .over { color: $playback-over; .strike { diff --git a/apps/client/src/features/rundown/rundown-group/RundownGroup.tsx b/apps/client/src/features/rundown/rundown-group/RundownGroup.tsx index 22044ac2c..cd746b2ce 100644 --- a/apps/client/src/features/rundown/rundown-group/RundownGroup.tsx +++ b/apps/client/src/features/rundown/rundown-group/RundownGroup.tsx @@ -8,6 +8,7 @@ import { IoChevronUp, IoDuplicateOutline, IoFolderOpenOutline, + IoLockClosed, IoReorderTwo, IoTrash, } from 'react-icons/io5'; @@ -176,14 +177,17 @@ export default function RundownGroup({ data, hasCursor, collapsed, onCollapse }:
Duration
- {planOffset === null ? ( -
{formatDuration(data.duration)}
- ) : ( -
- {formatDuration(data.duration)} - {planOffset} -
- )} +
+ {planOffset === null ? ( + formatDuration(data.duration) + ) : ( + + {formatDuration(data.duration)} + {planOffset} + + )} + {data.targetDuration !== null && } +