Slightly improve the look and behaviour of working with grid components

This commit is contained in:
Andrew Kingston 2024-08-09 08:52:03 +01:00
parent 8a022bb21e
commit 86061543dd
No known key found for this signature in database
2 changed files with 2 additions and 1 deletions

View File

@ -103,7 +103,7 @@
/* Highlight sibling borders when resizing childern */ /* Highlight sibling borders when resizing childern */
:global(.grid.highlight > .component:not(.dragging)) { :global(.grid.highlight > .component:not(.dragging)) {
outline: 1px solid var(--spectrum-global-color-static-blue-200); outline: 2px solid var(--spectrum-global-color-static-blue-200);
} }
/* Ensure all top level children have grid styles applied */ /* Ensure all top level children have grid styles applied */

View File

@ -147,6 +147,7 @@
if (!domGrid) { if (!domGrid) {
return return
} }
builderStore.actions.selectComponent(id)
// Apply active class to grid // Apply active class to grid
domComponent.parentNode.classList.add("dragging") domComponent.parentNode.classList.add("dragging")