Skip to content

Commit

Permalink
Improve empty canvas block
Browse files Browse the repository at this point in the history
  • Loading branch information
ivy-lli committed Dec 10, 2024
1 parent a1e1e7c commit ade351b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/editor/src/editor/canvas/Canvas.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@
}
&:has(.canvas-empty-message) {
height: calc(100% - 48px);
justify-content: center;
.drop-zone {
flex-grow: 1;
justify-content: center;
}
}
}

Expand Down
3 changes: 3 additions & 0 deletions packages/editor/src/editor/canvas/DropZone.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
background: var(--P50);
}
}
.canvas-empty-message {
height: 100%;
}
.drop-zone-block {
height: 0;
transition: height 0.1s ease-out;
Expand Down

0 comments on commit ade351b

Please sign in to comment.