We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c354e7 commit 6dfe752Copy full SHA for 6dfe752
src/theme/IdealImage/index.tsx
@@ -114,6 +114,7 @@ export default function IdealImage(
114
if (typeof img === "string" || (typeof img === "object" && img !== null && "default" in img)) {
115
const isGifInEarlyReturn = typeof img === "string" ? img.endsWith('.gif') :
116
(typeof img === "object" && img !== null && typeof img.default === "string" && img.default.endsWith('.gif'));
117
+
118
const gifStyles = isGifInEarlyReturn ? (
119
size === "lg"
120
? {
@@ -232,10 +233,6 @@ export default function IdealImage(
232
233
}),
234
};
235
- width: currentImage.width,
236
- height: currentImage.height
237
- });
238
-
239
const containerStyles: React.CSSProperties = {
240
position: "relative",
241
...(background
0 commit comments