From 0ecf9d246f7d6a86c631a17d910cd934665b6088 Mon Sep 17 00:00:00 2001 From: Peter Birrer Date: Thu, 21 Nov 2024 09:48:06 +0100 Subject: [PATCH] fix: prevent preview div from collapsing to 0px height Signed-off-by: Peter Birrer --- src/viewer.css | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/viewer.css b/src/viewer.css index 8635fdf..e05edfc 100644 --- a/src/viewer.css +++ b/src/viewer.css @@ -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; + } }