fix: limit preview media image max height

close #1131
This commit is contained in:
Stephen Zhou
2024-10-25 17:34:12 +08:00
parent f7696b3f8a
commit bd77bc400f
@@ -318,7 +318,7 @@ const FallbackableImage: FC<
<div className={cn("center flex size-full flex-col", containerClassName)}>
{!isAllError && (
<div
className={cn("relative", width <= height && "h-full")}
className={cn("relative max-h-full", width <= height && "h-full")}
style={{
// px-20 pb-8 pt-10
width: