From 8fa9b5ef4c2b9275bb252760559c01def7d82019 Mon Sep 17 00:00:00 2001 From: Evgeny Alaev Date: Tue, 8 Oct 2024 15:54:48 +0300 Subject: [PATCH] Revert "feat(Select): new label and value resize behaviour (#1694)" This reverts commit 891fa886ce5b2d9c8753abbfe49f833ff35619a6. --- .../Select/components/SelectClear/SelectClear.scss | 1 - .../Select/components/SelectControl/SelectControl.scss | 7 ++++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/Select/components/SelectClear/SelectClear.scss b/src/components/Select/components/SelectClear/SelectClear.scss index dc844d6a5a..3949b639ad 100644 --- a/src/components/Select/components/SelectClear/SelectClear.scss +++ b/src/components/Select/components/SelectClear/SelectClear.scss @@ -10,7 +10,6 @@ $block: '.#{variables.$ns}select-clear'; align-items: center; margin-inline-start: auto; z-index: 1; - flex-shrink: 0; &:focus-visible { border: 1px solid var(--g-color-line-generic-active); diff --git a/src/components/Select/components/SelectControl/SelectControl.scss b/src/components/Select/components/SelectControl/SelectControl.scss index b4c3e13f2a..8fae1ea32f 100644 --- a/src/components/Select/components/SelectControl/SelectControl.scss +++ b/src/components/Select/components/SelectControl/SelectControl.scss @@ -116,10 +116,8 @@ $blockButton: '.#{variables.$ns}select-control__button'; @include mixins.button-reset(); @include mixins.pin($blockButton, ('::before', '::after'), var(--_--border-radius)); - display: inline-grid; - grid-template-columns: auto auto; + display: inline-flex; align-items: center; - justify-content: flex-start; overflow: hidden; width: 100%; height: 100%; @@ -215,7 +213,10 @@ $blockButton: '.#{variables.$ns}select-control__button'; @include mixins.text-accent; @include mixins.overflow-ellipsis(); + flex-shrink: 0; + max-width: 50%; margin-inline-end: 4px; + white-space: nowrap; } &__placeholder,