From c1b64bc4f173e51916dadb4ccac95df69c5e962c Mon Sep 17 00:00:00 2001 From: Meierschlumpf Date: Tue, 17 Jan 2023 21:50:21 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20issue=20with=20sidebar=20m?= =?UTF-8?q?in=20size?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Dashboard/Wrappers/gridstack/use-gridstack.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Dashboard/Wrappers/gridstack/use-gridstack.ts b/src/components/Dashboard/Wrappers/gridstack/use-gridstack.ts index bb0e2adb5..85a48da0e 100644 --- a/src/components/Dashboard/Wrappers/gridstack/use-gridstack.ts +++ b/src/components/Dashboard/Wrappers/gridstack/use-gridstack.ts @@ -75,6 +75,7 @@ export const useGridstack = ( } useEffect(() => { + if (areaType === 'sidebar') return; const widgetWidth = mainAreaWidth / wrapperColumnCount; // widget width is used to define sizes of gridstack items within global.scss root.style.setProperty('--gridstack-widget-width', widgetWidth.toString());