Skip to content

Commit 4890912

Browse files
committed
chore: update style gif
1 parent 97040ce commit 4890912

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/extensions/ImageGif/components/ImageGifActionButton.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,19 +103,17 @@ function ImageGifWrap({ selectImage, apiKey, provider, children }: IProps) {
103103
/>
104104
</div>
105105

106-
<div className="richtext-max-h-[280px] richtext-overflow-y-auto">
106+
<div className="richtext-max-h-[280px] !richtext-max-w-[400px] richtext-overflow-y-auto">
107107
<div className="richtext-grid richtext-grid-cols-2 richtext-gap-1 ">
108108

109109
{gifs?.length
110110
? gifs?.map((item) => (
111111
<img
112112
alt=''
113-
className="richtext-cursor-pointer richtext-text-center"
114-
height={item.height}
113+
className="richtext-cursor-pointer richtext-object-contain richtext-text-center"
115114
key={item.id}
116115
onClick={() => selectImage(item.src)}
117116
src={item.src}
118-
width={item.width}
119117
/>
120118
))
121119
: <p>

0 commit comments

Comments
 (0)