Skip to content

Commit 6dfe752

Browse files
authored
Update index.tsx
1 parent 9c354e7 commit 6dfe752

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/theme/IdealImage/index.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ export default function IdealImage(
114114
if (typeof img === "string" || (typeof img === "object" && img !== null && "default" in img)) {
115115
const isGifInEarlyReturn = typeof img === "string" ? img.endsWith('.gif') :
116116
(typeof img === "object" && img !== null && typeof img.default === "string" && img.default.endsWith('.gif'));
117+
117118
const gifStyles = isGifInEarlyReturn ? (
118119
size === "lg"
119120
? {
@@ -232,10 +233,6 @@ export default function IdealImage(
232233
}),
233234
};
234235

235-
width: currentImage.width,
236-
height: currentImage.height
237-
});
238-
239236
const containerStyles: React.CSSProperties = {
240237
position: "relative",
241238
...(background

0 commit comments

Comments
 (0)