From 092d740ad5eef2e8625ae4c5adad77408b3ea5cd Mon Sep 17 00:00:00 2001 From: Vladimir Kubantsev Date: Wed, 25 Dec 2024 13:47:05 +0300 Subject: [PATCH] feat(Item): clamp composite bar item --- src/components/CompositeBar/Item/Item.scss | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/CompositeBar/Item/Item.scss b/src/components/CompositeBar/Item/Item.scss index 8defac9..c5a66fa 100644 --- a/src/components/CompositeBar/Item/Item.scss +++ b/src/components/CompositeBar/Item/Item.scss @@ -70,14 +70,14 @@ $block: '.#{variables.$ns}composite-bar-item'; } &__title { - display: flex; + display: box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; overflow: hidden; } &__title-text { - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; + display: inline; color: var(--gn-aside-header-item-text-color, var(--_--item-text-color)); @@ -90,6 +90,7 @@ $block: '.#{variables.$ns}composite-bar-item'; } &__title-adornment { + display: inline-block; margin: 0 10px; }