From 61a4c9ae0bc551e188b9a7f4875a00db447aecf2 Mon Sep 17 00:00:00 2001 From: imechoim Date: Wed, 9 Aug 2023 13:57:25 +0200 Subject: [PATCH] fix(Select): popup width fit mode with identation (#873) Co-authored-by: Yevhenii Chernovol --- .../Select/__stories__/Select.stories.tsx | 2 +- .../__stories__/SelectPopupWidthShowcase.tsx | 17 ++++++----- .../components/SelectPopup/modifiers.ts | 29 +++++++++++++++---- src/components/Select/types.ts | 2 +- 4 files changed, 36 insertions(+), 14 deletions(-) diff --git a/src/components/Select/__stories__/Select.stories.tsx b/src/components/Select/__stories__/Select.stories.tsx index dbb5c7dc27..d3097aca84 100644 --- a/src/components/Select/__stories__/Select.stories.tsx +++ b/src/components/Select/__stories__/Select.stories.tsx @@ -27,7 +27,7 @@ const SelectPopupWidthShowcaseTemplate: StoryFn = (args) => ( ); export const Default = DefaultTemplate.bind({}); export const Showcase = ShowcaseTemplate.bind({}); -export const PopupWidthShowcase = SelectPopupWidthShowcaseTemplate.bind({}); +export const PopupWidth = SelectPopupWidthShowcaseTemplate.bind({}); Showcase.args = { view: 'normal', diff --git a/src/components/Select/__stories__/SelectPopupWidthShowcase.tsx b/src/components/Select/__stories__/SelectPopupWidthShowcase.tsx index a76ca1f62a..9bd5c965b9 100644 --- a/src/components/Select/__stories__/SelectPopupWidthShowcase.tsx +++ b/src/components/Select/__stories__/SelectPopupWidthShowcase.tsx @@ -29,29 +29,32 @@ export const SelectPopupWidthShowcase = (args: any) => { -

Modes outfit/fit

+

Modes default/fit

- Extra long values. OUTFIT !default (apply max-width: 90vw) + Extra long values. DEFAULT (apply max-width: 90vw)
- Extra long values. OUTFIT !default Fullscreen + Extra long values. DEFAULT Fullscreen
{
- Short values. OUTFIT !default. Virtualized (use default width: 100px) + Short values. DEFAULT. Virtualized (use predefined width: 100px)