Skip to content

Commit

Permalink
fix: prevent preview div from collapsing to 0px height
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Birrer <[email protected]>
  • Loading branch information
pbirrer committed Nov 21, 2024
1 parent 162cad8 commit 0ecf9d2
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/viewer.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@
top: 0;
}

.whiteboard-viewer__embedding {
min-height: min(200px, 50vh);
position: relative;
.whiteboard-viewer__embedding .App {
min-height: max(400px, 50vh);

.excalidraw-wrapper {
position: absolute;
top: 0;
bottom: 0;
left: 0;
right: 0;
}
}

0 comments on commit 0ecf9d2

Please sign in to comment.