Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.0.30+web #585

Merged
merged 1 commit into from
May 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions packages/ui/src/components/account-cards/image.css.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { globalStyle, style } from '@vanilla-extract/css'
import { style } from '@vanilla-extract/css'

import { sprinkles } from 'ui/src/theme/sprinkles.css'

Expand All @@ -16,8 +16,10 @@ export const wrapper = style([
}),
])

globalStyle(`${wrapper} img`, {
position: 'absolute',
width: '100%',
height: '100%',
})
export const wrapperImg = style([
sprinkles({
position: 'absolute',
width: 'full',
height: 'full',
}),
])
2 changes: 1 addition & 1 deletion packages/ui/src/components/account-cards/image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const Image: React.FC<PropsWithChildren<IProps>> = ({ address, skin, clas
return (
<Box className={clsx(styles.wrapper, className)}>
{/* eslint-disable-next-line @next/next/no-img-element */}
<img src={imageSrc} alt={name} style={skin.styles} />
<Box component="img" src={imageSrc} alt={name} style={skin.styles} className={styles.wrapperImg} />
</Box>
)
}