Skip to content

Commit

Permalink
Merge pull request #119 from Huilensolis/112-feature-improve-images
Browse files Browse the repository at this point in the history
fix(app): 112 image skeleton growing too much width
  • Loading branch information
huilensolis authored Mar 3, 2024
2 parents e238afe + 58f159c commit cb1f967
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/components/feature/lazy-image/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}}
/>
)}
</div>
Expand Down

0 comments on commit cb1f967

Please sign in to comment.