mirror of
https://github.com/alexhopeoconnor/frigate.git
synced 2026-10-21 10:42:36 +10:00
Timeline tweaks for mobile (#10726)
* add dense prop, combine duplicate code, fix mobile bug * put segment height in hook * playground
This commit is contained in:
@@ -30,6 +30,7 @@ type EventSegmentProps = {
|
||||
severityType: ReviewSeverity;
|
||||
contentRef: RefObject<HTMLDivElement>;
|
||||
setHandlebarTime?: React.Dispatch<React.SetStateAction<number>>;
|
||||
dense: boolean;
|
||||
};
|
||||
|
||||
export function EventSegment({
|
||||
@@ -43,6 +44,7 @@ export function EventSegment({
|
||||
severityType,
|
||||
contentRef,
|
||||
setHandlebarTime,
|
||||
dense,
|
||||
}: EventSegmentProps) {
|
||||
const {
|
||||
getSeverity,
|
||||
@@ -212,6 +214,7 @@ export function EventSegment({
|
||||
alignedMinimapStartTime={alignedMinimapStartTime}
|
||||
alignedMinimapEndTime={alignedMinimapEndTime}
|
||||
firstMinimapSegmentRef={firstMinimapSegmentRef}
|
||||
dense={dense}
|
||||
/>
|
||||
)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user