🐛 Fix issue with sidebar min size

This commit is contained in:
Meierschlumpf
2023-01-17 21:50:21 +01:00
parent 8c5e002aac
commit c1b64bc4f1

View File

@@ -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());