Skip to content

Commit

Permalink
add size full to grid stack item content item
Browse files Browse the repository at this point in the history
  • Loading branch information
lovincyrus committed Dec 23, 2024
1 parent ff7a325 commit 19e5483
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion web-common/src/features/canvas/CanvasComponent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
use:builderActions={{ builders }}
role="presentation"
data-index={i}
class="canvas-component hover:cursor-pointer active:cursor-grab pointer-events-auto"
class="canvas-component hover:cursor-pointer active:cursor-grab pointer-events-auto size-full"
class:!cursor-default={embed}
style:z-index={renderer === "select" ? 100 : localZIndex}
on:contextmenu
Expand Down
2 changes: 2 additions & 0 deletions web-common/src/features/canvas/SvelteGridStack.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@
}
child.appendChild(element);
element.style.display = "block";
element.style.width = "100%";
element.style.height = "100%";
// FOR TESTING
// element.style.border = "1px solid red";
Expand Down

0 comments on commit 19e5483

Please sign in to comment.