From b7b5b08d539c40ab07502563547020b072b8b58d Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 16 Mar 2026 07:15:11 +0000 Subject: [PATCH] Remove grid spacing between cards and from edges Set margin and containerPadding to [0,0] in ResponsiveGridLayout, removed px-2/my-2/pb-8 from the wrapper div, and updated cellHeight formula to not account for margins. https://claude.ai/code/session_01THf2SuS7hLt9NgstxvKdg8 --- web/src/views/live/DraggableGridLayout.tsx | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/web/src/views/live/DraggableGridLayout.tsx b/web/src/views/live/DraggableGridLayout.tsx index c24b20974..613b9c5b2 100644 --- a/web/src/views/live/DraggableGridLayout.tsx +++ b/web/src/views/live/DraggableGridLayout.tsx @@ -371,16 +371,8 @@ export default function DraggableGridLayout({ const cellHeight = useMemo(() => { const aspectRatio = 16 / 9; - // subtract container margin, 1 camera takes up at least 4 rows - // account for additional margin on bottom of each row - return ( - (availableWidth - 2 * marginValue) / - 12 / - aspectRatio - - marginValue + - marginValue / 4 - ); - }, [availableWidth, marginValue]); + return availableWidth / 12 / aspectRatio; + }, [availableWidth]); const handleResize = ( _layout: Layout, @@ -716,7 +708,7 @@ export default function DraggableGridLayout({ ) : (