Skip to content

Commit cc3740b

Browse files
committed
style: fix aspect ratio with max height
1 parent 83e83b3 commit cc3740b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/ui/ActionLayout.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,13 @@ export const ActionLayout = ({
9898
<div className={clsx('blink', stylePresetClassMap[stylePreset])}>
9999
<div className="w-full cursor-default overflow-hidden rounded-2xl border border-stroke-primary bg-bg-primary shadow-action">
100100
{image && (
101-
<Linkable url={websiteUrl} className="block px-5 pt-5">
101+
<Linkable
102+
url={websiteUrl}
103+
className="block max-h-[500px] overflow-y-hidden px-5 pt-5"
104+
>
102105
<img
103106
className={clsx('w-full rounded-xl object-cover object-left', {
104-
'aspect-square': !form,
107+
'aspect-auto': !form,
105108
'aspect-[2/1]': form,
106109
})}
107110
src={image}

0 commit comments

Comments
 (0)