-
-
- {!isExtracted && handleLinks('rundown', event)} />}
-
-
-
-
-
- {!hideSideBar && (
-
+ if (isSmallDevice && isExtracted) {
+ return (
+
+
+
+ );
+ }
+
+ const hideSideBar = isExtracted && appMode === 'run';
+
+ return (
+
+
+
+
+
+
+ handleLinks('rundown', event)} />
+
+
+
+
+
+ {!hideSideBar && (
+
+
+
+
+
+ )}
+
-
+
);
}
diff --git a/apps/client/src/views/studio/StudioClock.tsx b/apps/client/src/views/studio/StudioClock.tsx
index 3504e1557..053a1fe80 100644
--- a/apps/client/src/views/studio/StudioClock.tsx
+++ b/apps/client/src/views/studio/StudioClock.tsx
@@ -1,5 +1,4 @@
-import { useViewportSize } from '@mantine/hooks';
-
+import { useIsMobile } from '../../common/hooks/useIsMobile';
import { cx } from '../../common/utils/styleUtils';
import { formatTime } from '../../common/utils/time';
import SuperscriptTime from '../../features/viewers/common/superscript-time/SuperscriptTime';
@@ -18,10 +17,10 @@ interface StudioClockProps {
}
export default function StudioClock({ onAir, clock, hideCards }: StudioClockProps) {
- const { width } = useViewportSize();
+ const isMobile = useIsMobile();
// if we are on mobile and have to show the cards
- if (width < 800 && !hideCards) {
+ if (isMobile && !hideCards) {
return
;
}