Skip to content

Commit

Permalink
add narrow story to Sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
JReinhold committed Sep 5, 2024
1 parent 67fcef2 commit d5d5f68
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions code/core/src/manager/components/sidebar/Sidebar.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,42 @@ export const WithRefs: Story = {
},
};

export const WithRefsNarrow: Story = {
args: {
refs: {
wide: {
...refs.optimized,
title: 'This is a ref with a very long title',
},
},
},
parameters: {
viewport: {
options: {
narrow: {
name: 'narrow',
styles: {
width: '400px',
height: '800px',
},
},
},
},
chromatic: {
modes: {
narrow: {
viewport: 400,
},
},
},
},
globals: {
viewport: {
value: 'narrow',
},
},
};

export const LoadingWithRefs: Story = {
args: {
...Loading.args,
Expand Down

0 comments on commit d5d5f68

Please sign in to comment.