chore(storybook): remove mobile stories and initialWidth prop from stories. The mobile view available throught viewport selector in the header
This commit is contained in:
@@ -30,7 +30,7 @@ const { Story } = defineMeta({
|
|||||||
|
|
||||||
<Story name="Mobile layout">
|
<Story name="Mobile layout">
|
||||||
{#snippet template()}
|
{#snippet template()}
|
||||||
<Providers initialWidth={375}>
|
<Providers>
|
||||||
<div style="width: 375px;">
|
<div style="width: 375px;">
|
||||||
<FilterControls />
|
<FilterControls />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ const { Story } = defineMeta({
|
|||||||
story: { inline: false },
|
story: { inline: false },
|
||||||
},
|
},
|
||||||
layout: 'centered',
|
layout: 'centered',
|
||||||
|
storyStage: { maxWidth: 'max-w-xl' },
|
||||||
},
|
},
|
||||||
argTypes: {
|
argTypes: {
|
||||||
hidden: { control: 'boolean' },
|
hidden: { control: 'boolean' },
|
||||||
@@ -33,16 +34,6 @@ const { Story } = defineMeta({
|
|||||||
{/snippet}
|
{/snippet}
|
||||||
</Story>
|
</Story>
|
||||||
|
|
||||||
<Story name="Mobile">
|
|
||||||
{#snippet template()}
|
|
||||||
<Providers initialWidth={375}>
|
|
||||||
<div class="relative h-20 flex items-end justify-end p-4">
|
|
||||||
<TypographyMenu />
|
|
||||||
</div>
|
|
||||||
</Providers>
|
|
||||||
{/snippet}
|
|
||||||
</Story>
|
|
||||||
|
|
||||||
<Story name="Hidden">
|
<Story name="Hidden">
|
||||||
{#snippet template()}
|
{#snippet template()}
|
||||||
<Providers>
|
<Providers>
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ const { Story } = defineMeta({
|
|||||||
|
|
||||||
<Story name="Mobile Open">
|
<Story name="Mobile Open">
|
||||||
{#snippet template()}
|
{#snippet template()}
|
||||||
<Providers initialWidth={375}>
|
<Providers>
|
||||||
<div class="h-64 relative overflow-hidden">
|
<div class="h-64 relative overflow-hidden">
|
||||||
<SidebarContainer isOpen={true}>
|
<SidebarContainer isOpen={true}>
|
||||||
{#snippet sidebar({ onClose })}
|
{#snippet sidebar({ onClose })}
|
||||||
|
|||||||
Reference in New Issue
Block a user