From 58f159ca0118deb2eedec75c9e1daaead7d1f7c5 Mon Sep 17 00:00:00 2001 From: Huilensolis Date: Sat, 2 Mar 2024 22:45:21 -0300 Subject: [PATCH] fix(app): 112 image skeleton growing too much width --- src/components/feature/lazy-image/index.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/feature/lazy-image/index.tsx b/src/components/feature/lazy-image/index.tsx index 65d5b37..7f2657f 100644 --- a/src/components/feature/lazy-image/index.tsx +++ b/src/components/feature/lazy-image/index.tsx @@ -64,7 +64,13 @@ export function LazyImage({ "absolute top-0 left-0 w-full h-full", skeletonClassName, ].join(" ")} - style={{ height, width, backgroundColor: skeletonBgColor }} + style={{ + height: "100%", + width: "100%", + maxWidth: width, + maxHeight: height, + backgroundColor: skeletonBgColor, + }} /> )}