Skip to content

Commit

Permalink
fix: set proper width for fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
camerow committed Jan 16, 2025
1 parent 3727275 commit cfe5baf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/components/collectibles/src20-image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function Src20Image(props: Src20ImageProps) {
const [isLoading, setIsLoading] = useState(true);
const [width, setWidth] = useState(0);

if (isError) return <Eye1ClosedIcon />;
if (isError) return <Eye1ClosedIcon width="xl" />;

return (
<img
Expand All @@ -29,7 +29,6 @@ export function Src20Image(props: Src20ImageProps) {
src={src}
className={css({
width: 'xl',
aspectRatio: '1 / 1',
borderRadius: '100%',
objectFit: 'cover',
// display: 'none' breaks onLoad event firing
Expand Down

0 comments on commit cfe5baf

Please sign in to comment.