mirror of
https://github.com/blakeblackshear/frigate.git
synced 2025-01-21 00:06:44 +01:00
fix overflowing review timeline on mobile (#10231)
This commit is contained in:
parent
85ce672b53
commit
0f168dfc1a
@ -184,7 +184,7 @@ export function EventReviewTimeline({
|
|||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
className={`bg-destructive rounded-full mx-auto ${
|
className={`bg-destructive rounded-full mx-auto ${
|
||||||
segmentDuration < 60 ? "w-14 md:w-20" : "w-12 md:w-16"
|
segmentDuration < 60 ? "w-16 md:w-20" : "w-12 md:w-16"
|
||||||
} h-5 flex items-center justify-center`}
|
} h-5 flex items-center justify-center`}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
|
@ -81,7 +81,7 @@ export default function RecordingView({
|
|||||||
}, [scrubbing]);
|
}, [scrubbing]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div ref={contentRef} className="relative w-full h-full">
|
<div ref={contentRef} className="flex flex-col relative w-full h-full">
|
||||||
<Button
|
<Button
|
||||||
className="md:absolute md:top-0 md:left-0 rounded-lg"
|
className="md:absolute md:top-0 md:left-0 rounded-lg"
|
||||||
onClick={() => navigate(-1)}
|
onClick={() => navigate(-1)}
|
||||||
@ -110,7 +110,7 @@ export default function RecordingView({
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="md:absolute md:w-[100px] md:inset-y-0 md:right-0">
|
<div className="flex-grow overflow-hidden md:absolute md:w-[100px] md:inset-y-0 md:right-0">
|
||||||
<EventReviewTimeline
|
<EventReviewTimeline
|
||||||
segmentDuration={30}
|
segmentDuration={30}
|
||||||
timestampSpread={15}
|
timestampSpread={15}
|
||||||
|
Loading…
Reference in New Issue
Block a user