mirror of
https://github.com/dzeiocom/components.git
synced 2025-04-23 19:32:14 +00:00
fix: Fullscreen bein weird
Signed-off-by: Avior <github@avior.me>
This commit is contained in:
parent
2b75a3a68b
commit
197617e2d5
10
src/Image/Image.stories.tsx
Normal file
10
src/Image/Image.stories.tsx
Normal file
@ -0,0 +1,10 @@
|
||||
import { Meta, Story } from '@storybook/react/types-6-0'
|
||||
import React from 'react'
|
||||
import Component from '.'
|
||||
|
||||
export default {
|
||||
title: 'DZEIO/Image',
|
||||
component: Component
|
||||
} as Meta
|
||||
|
||||
export const Image: Story<any> = (args: any) => <Component imageProps={{src: '/90-38.svg', width: 90, height: 38}} fullscreen {...args} />
|
@ -69,6 +69,7 @@ export default class Image extends React.Component<Props, States> {
|
||||
priority
|
||||
quality={100}
|
||||
{...this.props.imageProps}
|
||||
layout={this.state.image ? 'fill' : this.props.imageProps.layout}
|
||||
objectFit="contain"
|
||||
/>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user