mirror of
https://github.com/dzeiocom/components.git
synced 2025-06-08 17:19:55 +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
|
priority
|
||||||
quality={100}
|
quality={100}
|
||||||
{...this.props.imageProps}
|
{...this.props.imageProps}
|
||||||
|
layout={this.state.image ? 'fill' : this.props.imageProps.layout}
|
||||||
objectFit="contain"
|
objectFit="contain"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user