From e01914eb209aefba686b4a4ae0065f6d63a3e4ab Mon Sep 17 00:00:00 2001 From: Ilya Date: Mon, 23 Dec 2024 01:46:19 +0300 Subject: [PATCH] fix(*): edit storybook dropwdown --- .../src/components/Dropdown/Dropdown.stories.tsx | 7 +++++-- .../src/components/Dropdown/Dropdown.stories.tsx | 7 +++++-- .../src/components/Dropdown/Dropdown.types.ts | 1 + .../plasma_b2c/components/Dropdown/Dropdown.stories.tsx | 7 +++++-- .../plasma_web/components/Dropdown/Dropdown.stories.tsx | 7 +++++-- .../src/components/Dropdown/Dropdown.stories.tsx | 7 +++++-- .../sdds-cs/src/components/Dropdown/Dropdown.stories.tsx | 7 +++++-- .../sdds-dfa/src/components/Dropdown/Dropdown.stories.tsx | 7 +++++-- .../src/components/Dropdown/Dropdown.stories.tsx | 7 +++++-- .../src/components/Dropdown/Dropdown.stories.tsx | 7 +++++-- .../sdds-serv/src/components/Dropdown/Dropdown.stories.tsx | 7 +++++-- 11 files changed, 51 insertions(+), 20 deletions(-) diff --git a/packages/plasma-b2c/src/components/Dropdown/Dropdown.stories.tsx b/packages/plasma-b2c/src/components/Dropdown/Dropdown.stories.tsx index b644768841..e79f0f0036 100644 --- a/packages/plasma-b2c/src/components/Dropdown/Dropdown.stories.tsx +++ b/packages/plasma-b2c/src/components/Dropdown/Dropdown.stories.tsx @@ -53,6 +53,9 @@ const meta: Meta = { control: { type: 'boolean' }, if: { arg: 'alwaysOpened', truthy: false }, }, + listWidth: { + control: { type: 'text' }, + }, }, args: { size: 'm', @@ -60,7 +63,7 @@ const meta: Meta = { placement: 'bottom-start', trigger: 'click', offset: [0, 0], - listWidth: '', + listWidth: '300px', hasArrow: true, alwaysOpened: false, closeOnOverlayClick: true, @@ -312,7 +315,7 @@ const StoryNormal = (args: DropdownProps) => { onItemSelect={action('onItemSelect')} onItemClick={action('onItemClick')} > -