mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 07:25:48 +01:00
🐛 Fix issue with sidebar min size
This commit is contained in:
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user