Skip to content

Commit

Permalink
fix: fix build diff display on Safari (#1168)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregberge authored Jan 26, 2024
1 parent 5cf993b commit cf859e2
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions apps/frontend/src/pages/Build/BuildDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,18 @@ function ScreenshotContainer({
}) {
return (
<div
className="relative min-w-0 min-h-0"
style={{
aspectRatio: contained ? getAspectRatio(dimensions) : undefined,
}}
className={clsx(
"relative min-w-0 min-h-0",
contained && "max-h-full max-w-full",
)}
style={
contained
? {
aspectRatio: getAspectRatio(dimensions),
height: dimensions.height ?? undefined,
}
: undefined
}
>
{children}
</div>
Expand Down

0 comments on commit cf859e2

Please sign in to comment.