mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-24 20:36:40 +07:00
fixed image objectFit at flow
This commit is contained in:
parent
77e8705f41
commit
85f3de775a
1 changed files with 8 additions and 1 deletions
|
@ -19,7 +19,14 @@ const FlowCellImage: FC<Props> = ({
|
|||
...rest
|
||||
}) => (
|
||||
<div className={classNames(styles.wrapper, className)}>
|
||||
<Image {...rest} src={src!} alt={alt} placeholder="empty" layout="fill" />
|
||||
<Image
|
||||
{...rest}
|
||||
src={src!}
|
||||
alt={alt}
|
||||
placeholder="empty"
|
||||
layout="fill"
|
||||
objectFit="cover"
|
||||
/>
|
||||
{children}
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue