mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-29 19:09:14 +00:00
refactor(rundown): show locked duration group indicator
This commit is contained in:
committed by
Carlos Valente
parent
4addb50ca4
commit
6bcfd87851
@@ -82,6 +82,17 @@
|
|||||||
margin-right: 0.25rem;
|
margin-right: 0.25rem;
|
||||||
color: $ui-white;
|
color: $ui-white;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.duration {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
gap: 0.25rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.lockIcon {
|
||||||
|
opacity: 0.6;
|
||||||
|
}
|
||||||
|
|
||||||
.over {
|
.over {
|
||||||
color: $playback-over;
|
color: $playback-over;
|
||||||
.strike {
|
.strike {
|
||||||
|
|||||||
@@ -8,6 +8,7 @@ import {
|
|||||||
IoChevronUp,
|
IoChevronUp,
|
||||||
IoDuplicateOutline,
|
IoDuplicateOutline,
|
||||||
IoFolderOpenOutline,
|
IoFolderOpenOutline,
|
||||||
|
IoLockClosed,
|
||||||
IoReorderTwo,
|
IoReorderTwo,
|
||||||
IoTrash,
|
IoTrash,
|
||||||
} from 'react-icons/io5';
|
} from 'react-icons/io5';
|
||||||
@@ -176,14 +177,17 @@ export default function RundownGroup({ data, hasCursor, collapsed, onCollapse }:
|
|||||||
</div>
|
</div>
|
||||||
<div className={style.metaEntry}>
|
<div className={style.metaEntry}>
|
||||||
<div className={style.metaLabel}>Duration</div>
|
<div className={style.metaLabel}>Duration</div>
|
||||||
{planOffset === null ? (
|
<div className={style.duration}>
|
||||||
<div>{formatDuration(data.duration)}</div>
|
{planOffset === null ? (
|
||||||
) : (
|
formatDuration(data.duration)
|
||||||
<div className={cx([planOffsetLabel && style[planOffsetLabel]])}>
|
) : (
|
||||||
<span className={style.strike}>{formatDuration(data.duration)}</span>
|
<span className={cx([planOffsetLabel && style[planOffsetLabel]])}>
|
||||||
<Tag className={style.offsetLabel}>{planOffset}</Tag>
|
<span className={style.strike}>{formatDuration(data.duration)}</span>
|
||||||
</div>
|
<Tag className={style.offsetLabel}>{planOffset}</Tag>
|
||||||
)}
|
</span>
|
||||||
|
)}
|
||||||
|
{data.targetDuration !== null && <IoLockClosed className={style.lockIcon} />}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user