Skip to content

Commit d5d5f68

Browse files
committed
add narrow story to Sidebar
1 parent 67fcef2 commit d5d5f68

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

Diff for: code/core/src/manager/components/sidebar/Sidebar.stories.tsx

+36
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,42 @@ export const WithRefs: Story = {
143143
},
144144
};
145145

146+
export const WithRefsNarrow: Story = {
147+
args: {
148+
refs: {
149+
wide: {
150+
...refs.optimized,
151+
title: 'This is a ref with a very long title',
152+
},
153+
},
154+
},
155+
parameters: {
156+
viewport: {
157+
options: {
158+
narrow: {
159+
name: 'narrow',
160+
styles: {
161+
width: '400px',
162+
height: '800px',
163+
},
164+
},
165+
},
166+
},
167+
chromatic: {
168+
modes: {
169+
narrow: {
170+
viewport: 400,
171+
},
172+
},
173+
},
174+
},
175+
globals: {
176+
viewport: {
177+
value: 'narrow',
178+
},
179+
},
180+
};
181+
146182
export const LoadingWithRefs: Story = {
147183
args: {
148184
...Loading.args,

0 commit comments

Comments
 (0)