diff --git a/web/src/components/LiveChip.jsx b/web/src/components/LiveChip.jsx index 08b4d5dae..e5861e05e 100644 --- a/web/src/components/LiveChip.jsx +++ b/web/src/components/LiveChip.jsx @@ -2,10 +2,7 @@ import { h } from 'preact'; export function LiveChip({ className }) { return ( -
+
{text} diff --git a/web/src/components/Timeline.jsx b/web/src/components/Timeline.jsx index c59a21c6f..33592bda0 100644 --- a/web/src/components/Timeline.jsx +++ b/web/src/components/Timeline.jsx @@ -13,7 +13,7 @@ export default function Timeline({ events, offset, currentIndex, onChange }) { const [scrollActive, setScrollActive] = useState(true); useEffect(() => { - if (events && timelineOffset) { + if (events && events.length > 0 && timelineOffset) { const firstEvent = events[0]; if (firstEvent) { setMarkerTime(longToDate(firstEvent.start_time)); diff --git a/web/src/routes/Camera_V2.jsx b/web/src/routes/Camera_V2.jsx index fbffdcb1b..5e2039d91 100644 --- a/web/src/routes/Camera_V2.jsx +++ b/web/src/routes/Camera_V2.jsx @@ -115,16 +115,16 @@ export default function Camera({ camera }) { }; return ( -
+
{(playerType === 'live' || playerType === 'debug') && ( - + {camera} - + )}