mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-05 22:57:40 +03:00
Merge pull request #102 from ibs0d/claude/add-fit-to-screen-mode-XvHoV
Fix fit-to-screen drag: use noCompactor for free horizontal movement
This commit is contained in:
commit
6e0b30ec9c
@ -16,6 +16,7 @@ import {
|
|||||||
Layout,
|
Layout,
|
||||||
LayoutItem,
|
LayoutItem,
|
||||||
ResponsiveGridLayout as Responsive,
|
ResponsiveGridLayout as Responsive,
|
||||||
|
noCompactor,
|
||||||
} from "react-grid-layout";
|
} from "react-grid-layout";
|
||||||
import "react-grid-layout/css/styles.css";
|
import "react-grid-layout/css/styles.css";
|
||||||
import "react-resizable/css/styles.css";
|
import "react-resizable/css/styles.css";
|
||||||
@ -920,6 +921,7 @@ export default function DraggableGridLayout({
|
|||||||
{containerWidth > 0 && <Responsive
|
{containerWidth > 0 && <Responsive
|
||||||
className="grid-layout"
|
className="grid-layout"
|
||||||
width={availableWidth}
|
width={availableWidth}
|
||||||
|
compactor={fitToScreen ? noCompactor : undefined}
|
||||||
layouts={{
|
layouts={{
|
||||||
lg: activeGridLayout,
|
lg: activeGridLayout,
|
||||||
md: activeGridLayout,
|
md: activeGridLayout,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user