style: improve styling of items on board (#504)

style: improve styling of items on board by defining margin depending on screen size, removing general padding on card of items and reducing size of no app icon
This commit is contained in:
Meier Lukas
2024-05-16 18:48:20 +02:00
committed by GitHub
parent 333dc571fa
commit 669a79ef08
3 changed files with 54 additions and 39 deletions

View File

@@ -26,7 +26,9 @@ export const initializeGridstack = ({
newGrid.current = GridStack.init(
{
column: sectionColumnCount,
margin: 10,
margin: Math.round(
Math.max(Math.min(refs.wrapper.current.offsetWidth / 100, 10), 1),
),
cellHeight: 128,
float: true,
alwaysShowResizeHandle: true,