From 75e0da2a866a7789606bd40d484fc29973fd9e0a Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Thu, 14 Nov 2024 13:07:53 +0800 Subject: [PATCH] fix: fill height when zooming --- apps/renderer/src/components/ui/media/preview-media.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/renderer/src/components/ui/media/preview-media.tsx b/apps/renderer/src/components/ui/media/preview-media.tsx index bde9012cdd..acfe53c1f6 100644 --- a/apps/renderer/src/components/ui/media/preview-media.tsx +++ b/apps/renderer/src/components/ui/media/preview-media.tsx @@ -368,6 +368,7 @@ const FallbackableImage: FC< scale > 1 && !haveSideContent ? `${Math.min(maxContainerWidth / 2, scale * imgWidth)}px` : undefined, + height: scale > 1 ? "100%" : undefined, }} contentClass={wrapperClass} contentStyle={wrapperStyle}