mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 07:25:48 +01:00
💄 Adjust GridStack sizes
Co-authored-by: Meier Lukas <meierschlumpf@gmail.com>
This commit is contained in:
@@ -78,7 +78,7 @@ export const useGridstack = (
|
||||
// change column count depending on the width and the gridRef
|
||||
useEffect(() => {
|
||||
if (areaType === 'sidebar') return;
|
||||
gridRef.current?.column(Math.floor(width / 64), 'moveScale');
|
||||
gridRef.current?.column(12);
|
||||
}, [gridRef, width]);
|
||||
|
||||
const onChange = isEditMode
|
||||
|
||||
Reference in New Issue
Block a user