mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-10 16:49:41 +00:00
refactor(rundown): improve visibility of count to end
This commit is contained in:
@@ -7,6 +7,7 @@ $skip-opacity: 0.2;
|
|||||||
background-color: $block-bg;
|
background-color: $block-bg;
|
||||||
margin-block: 0.25rem;
|
margin-block: 0.25rem;
|
||||||
overflow: initial;
|
overflow: initial;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-areas:
|
grid-template-areas:
|
||||||
@@ -35,6 +36,10 @@ $skip-opacity: 0.2;
|
|||||||
background-color: $gray-1325;
|
background-color: $gray-1325;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.countToEnd {
|
||||||
|
--status-color-active-override: #{$orange-400};
|
||||||
|
}
|
||||||
|
|
||||||
&.play {
|
&.play {
|
||||||
background-color: $active-green;
|
background-color: $active-green;
|
||||||
@include declare-overrides;
|
@include declare-overrides;
|
||||||
@@ -155,7 +160,7 @@ $skip-opacity: 0.2;
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|
||||||
.nextTag {
|
.warningMeta {
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
color: $orange-500;
|
color: $orange-500;
|
||||||
letter-spacing: 0.03px;
|
letter-spacing: 0.03px;
|
||||||
|
|||||||
@@ -253,6 +253,7 @@ export default function RundownEvent({
|
|||||||
|
|
||||||
const blockClasses = cx([
|
const blockClasses = cx([
|
||||||
style.rundownEvent,
|
style.rundownEvent,
|
||||||
|
countToEnd && style.countToEnd,
|
||||||
skip && style.skip,
|
skip && style.skip,
|
||||||
isPast && style.past,
|
isPast && style.past,
|
||||||
loaded && style.loaded,
|
loaded && style.loaded,
|
||||||
|
|||||||
@@ -120,7 +120,8 @@ function RundownEventInner({
|
|||||||
</div>
|
</div>
|
||||||
<div className={style.titleSection}>
|
<div className={style.titleSection}>
|
||||||
<TitleEditor title={title} entryId={eventId} placeholder='Event title' className={style.eventTitle} />
|
<TitleEditor title={title} entryId={eventId} placeholder='Event title' className={style.eventTitle} />
|
||||||
{isNext && <span className={style.nextTag}>UP NEXT</span>}
|
{isNext && <span className={style.warningMeta}>UP NEXT</span>}
|
||||||
|
{!isNext && countToEnd && <span className={style.warningMeta}>COUNT TO END</span>}
|
||||||
</div>
|
</div>
|
||||||
<EventBlockPlayback
|
<EventBlockPlayback
|
||||||
eventId={eventId}
|
eventId={eventId}
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ interface TimeInputFlowProps {
|
|||||||
export default memo(TimeInputFlow);
|
export default memo(TimeInputFlow);
|
||||||
function TimeInputFlow({
|
function TimeInputFlow({
|
||||||
eventId,
|
eventId,
|
||||||
countToEnd,
|
|
||||||
timeStart,
|
timeStart,
|
||||||
timeEnd,
|
timeEnd,
|
||||||
duration,
|
duration,
|
||||||
@@ -56,10 +55,6 @@ function TimeInputFlow({
|
|||||||
warnings.push('Over midnight');
|
warnings.push('Over midnight');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (countToEnd) {
|
|
||||||
warnings.push('Count to End');
|
|
||||||
}
|
|
||||||
|
|
||||||
const hasDelay = delay !== 0;
|
const hasDelay = delay !== 0;
|
||||||
const isLockedEnd = timeStrategy === TimeStrategy.LockEnd;
|
const isLockedEnd = timeStrategy === TimeStrategy.LockEnd;
|
||||||
const isLockedDuration = timeStrategy === TimeStrategy.LockDuration;
|
const isLockedDuration = timeStrategy === TimeStrategy.LockDuration;
|
||||||
|
|||||||
Reference in New Issue
Block a user