chore: prevent collision by default in custom home page

Signed-off-by: Heikki Hellgren <heikki.hellgren@op.fi>
This commit is contained in:
Heikki Hellgren
2025-01-08 08:47:02 +02:00
parent aaad211d68
commit 8e86f96698
2 changed files with 9 additions and 1 deletions
+8
View File
@@ -0,0 +1,8 @@
---
'@backstage/plugin-home': patch
---
Enable collision prevention by default in custom home page.
This change ensures that items in the home page will not collide with each other
making the user experience better.
@@ -349,7 +349,7 @@ export const CustomHomepageGrid = (props: CustomHomepageGridProps) => {
compactType={props.compactType}
style={props.style}
allowOverlap={props.allowOverlap}
preventCollision={props.preventCollision}
preventCollision={props.preventCollision ?? true}
draggableCancel=".overlayGridItem,.widgetSettingsDialog,.disabled"
containerPadding={props.containerPadding}
margin={props.containerMargin}