Skip to content

Commit

Permalink
fixup! feat: update a way params are thrown to iframe styles
Browse files Browse the repository at this point in the history
  • Loading branch information
niktverd committed Dec 20, 2023
1 parent fe87823 commit 4a2744f
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/components/Media/__stories__/Media.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,14 @@ const DefaultTemplate: StoryFn<MediaAllProps> = (args) => (
</div>
);

const IframeTemplate: StoryFn<MediaAllProps> = (args) => {
return (
<div style={{maxWidth: '700px'}}>
<h1>Iframe with margins (default)</h1>
<Media {...args} />
<h1>Iframe without margins</h1>
<Media {...args} margins={false} />
</div>
);
};
const IframeTemplate: StoryFn<MediaAllProps> = (args) => (
<div style={{maxWidth: '500px'}}>
<h1>Iframe with margins (default)</h1>
<Media {...args} />
<h1>Iframe without margins</h1>
<Media {...args} margins={false} />
</div>
);

export const Image = DefaultTemplate.bind({});
export const ImageSlider = DefaultTemplate.bind({});
Expand Down

0 comments on commit 4a2744f

Please sign in to comment.