diff --git a/apps/client/src/features/operator/Operator.module.scss b/apps/client/src/features/operator/Operator.module.scss index c31b66126..2ffccd80d 100644 --- a/apps/client/src/features/operator/Operator.module.scss +++ b/apps/client/src/features/operator/Operator.module.scss @@ -30,9 +30,21 @@ .scheduledEvent { @include event-block(); background-color: $gray-1300; + align-items: start; +} + +.activeEvent { + border-top: 1.5px white; + border-style: solid; +} + +.runningTimer { + border-top: 0.5px white; + border-style: solid; + background-color: $green-700; } .block { @include event-block(); background-color: $gray-1350; -} +} \ No newline at end of file diff --git a/apps/client/src/features/operator/Operator.tsx b/apps/client/src/features/operator/Operator.tsx index 4e4795eab..120b1ca17 100644 --- a/apps/client/src/features/operator/Operator.tsx +++ b/apps/client/src/features/operator/Operator.tsx @@ -1,7 +1,10 @@ +import React from 'react'; import { SupportedEvent } from 'ontime-types'; +import NavigationMenu from '../.././common/components/navigation-menu/NavigationMenu'; import useRundown from '../../common/hooks-query/useRundown'; +import FocusBlock from './focus-block/focus-block'; import OpBlock from './op-block/OpBlock'; import OpEvent from './op-event/OpEvent'; import TimeBlock from './time-block/TimeBlock'; @@ -12,6 +15,14 @@ export default function Operator() { // this is the data that you need, the status flag should give you possibility to create a loading state // for debugging data use the react query dev tools (flower thing in the bottom left corner) const { data, status } = useRundown(); + const [showChild, setShowChild] = React.useState(false); + + const handleScroll = (event: any) => { + const scrollThreshold = 50; // Set the scroll threshold here + const scrollPosition = event.target.scrollTop; + + setShowChild(scrollPosition > scrollThreshold); + }; if (!data || status === 'loading') { return <>loading>; @@ -19,16 +30,23 @@ export default function Operator() { return (