mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-11 13:45:25 +03:00
Simplify layout
This commit is contained in:
parent
06cdb699ce
commit
dc518a4d27
@ -334,6 +334,8 @@ export function RecordingView({
|
|||||||
previewRowRef.current.scrollWidth > previewRowRef.current.clientWidth ||
|
previewRowRef.current.scrollWidth > previewRowRef.current.clientWidth ||
|
||||||
previewRowRef.current.scrollHeight > previewRowRef.current.clientHeight
|
previewRowRef.current.scrollHeight > previewRowRef.current.clientHeight
|
||||||
);
|
);
|
||||||
|
// we only want to update when the scroll size changes
|
||||||
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [previewRowRef.current?.scrollWidth, previewRowRef.current?.scrollHeight]);
|
}, [previewRowRef.current?.scrollWidth, previewRowRef.current?.scrollHeight]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -343,12 +345,7 @@ export function RecordingView({
|
|||||||
{isMobile && (
|
{isMobile && (
|
||||||
<Logo className="absolute inset-x-1/2 -translate-x-1/2 h-8" />
|
<Logo className="absolute inset-x-1/2 -translate-x-1/2 h-8" />
|
||||||
)}
|
)}
|
||||||
<div
|
<div className={cn("flex items-center gap-2")}>
|
||||||
className={cn(
|
|
||||||
"flex items-center gap-2",
|
|
||||||
isMobile ? "landscape:flex-col" : "",
|
|
||||||
)}
|
|
||||||
>
|
|
||||||
<Button
|
<Button
|
||||||
className="flex items-center gap-2.5 rounded-lg"
|
className="flex items-center gap-2.5 rounded-lg"
|
||||||
size="sm"
|
size="sm"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user