From 82e443a5c35e4a77c4e7c035feb5d741953f3f02 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Fri, 10 May 2024 11:54:37 -0500 Subject: [PATCH] Camera group layout fixes (#11334) * camera group layout changes and tweaks * lock aspect ratio * no compacting * prevent collisions * revert * readd limit aspect --- web/src/components/icons/IconPicker.tsx | 13 +- web/src/hooks/use-fullscreen.ts | 146 +++++++++++++++++++++ web/src/views/live/DraggableGridLayout.tsx | 100 +++++++------- web/src/views/live/LiveDashboardView.tsx | 12 +- 4 files changed, 216 insertions(+), 55 deletions(-) create mode 100644 web/src/hooks/use-fullscreen.ts diff --git a/web/src/components/icons/IconPicker.tsx b/web/src/components/icons/IconPicker.tsx index 21883ccdc..6450626d4 100644 --- a/web/src/components/icons/IconPicker.tsx +++ b/web/src/components/icons/IconPicker.tsx @@ -95,10 +95,11 @@ export default function IconPicker({ align="start" side="top" container={containerRef.current} - className="max-h-[50dvh]" + className="flex flex-col max-h-[50dvh] md:max-h-[30dvh] overflow-y-hidden" >