Skip to content

Commit

Permalink
feat(Item): clamp composite bar item
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladimir Kubantsev committed Dec 25, 2024
1 parent be53fc5 commit 092d740
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/components/CompositeBar/Item/Item.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand All @@ -90,6 +90,7 @@ $block: '.#{variables.$ns}composite-bar-item';
}

&__title-adornment {
display: inline-block;
margin: 0 10px;
}

Expand Down

0 comments on commit 092d740

Please sign in to comment.