Merge branch 'dev' of https://github.com/ajnart/homarr into dev

This commit is contained in:
Manuel
2023-01-17 22:10:49 +01:00

View File

@@ -75,6 +75,7 @@ export const useGridstack = (
} }
useEffect(() => { useEffect(() => {
if (areaType === 'sidebar') return;
const widgetWidth = mainAreaWidth / wrapperColumnCount; const widgetWidth = mainAreaWidth / wrapperColumnCount;
// widget width is used to define sizes of gridstack items within global.scss // widget width is used to define sizes of gridstack items within global.scss
root.style.setProperty('--gridstack-widget-width', widgetWidth.toString()); root.style.setProperty('--gridstack-widget-width', widgetWidth.toString());