(Component: ComponentType
) => { const publicEvents = useMemo(() => { if (Array.isArray(rundownData)) { - return rundownData.filter((e) => e.type === 'event' && e.title && e.isPublic); + return rundownData.filter((e) => e.type === SupportedEvent.Event && e.title && e.isPublic); } return []; }, [rundownData]); diff --git a/apps/client/src/features/viewers/backstage/Backstage.scss b/apps/client/src/features/viewers/backstage/Backstage.scss index ffda8ab1a..4198a4337 100644 --- a/apps/client/src/features/viewers/backstage/Backstage.scss +++ b/apps/client/src/features/viewers/backstage/Backstage.scss @@ -99,7 +99,11 @@ margin-top: 2em; padding-top: 1em; display: flex; - gap: 7.5em; + } + + .timer-gap { + flex: 1; + max-width: 7.5em; } .aux-timers { diff --git a/apps/client/src/features/viewers/backstage/Backstage.tsx b/apps/client/src/features/viewers/backstage/Backstage.tsx index 72360b924..94fb848b1 100644 --- a/apps/client/src/features/viewers/backstage/Backstage.tsx +++ b/apps/client/src/features/viewers/backstage/Backstage.tsx @@ -11,7 +11,7 @@ import Schedule from '../../../common/components/schedule/Schedule'; import { ScheduleProvider } from '../../../common/components/schedule/ScheduleContext'; import ScheduleNav from '../../../common/components/schedule/ScheduleNav'; import TitleCard from '../../../common/components/title-card/TitleCard'; -import { TIME_FORMAT_OPTION } from '../../../common/components/view-params-editor/constants'; +import { BACKSTAGE_OPTIONS } from '../../../common/components/view-params-editor/constants'; import ViewParamsEditor from '../../../common/components/view-params-editor/ViewParamsEditor'; import { useRuntimeStylesheet } from '../../../common/hooks/useRuntimeStylesheet'; import { TimeManagerType } from '../../../common/models/TimeManager.type'; @@ -92,7 +92,7 @@ export default function Backstage(props: BackstageProps) { return (