Skip to content

Commit

Permalink
feat(legacy): limit tui-tag width to 80% to avoid wrapping in sel…
Browse files Browse the repository at this point in the history
…ects (#9886)
  • Loading branch information
splincode authored Dec 9, 2024
1 parent 248e3d0 commit 54f5c65
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {TuiDataListWrapper} from '@taiga-ui/kit';
import {TuiMultiSelectModule, TuiTextfieldControllerModule} from '@taiga-ui/legacy';

const ITEMS: readonly string[] = [
'Luke Skywalker',
'Luke Skywalker and a long time ago in a galaxy far, far away..',
'Leia Organa Solo',
'Darth Vader',
'Han Solo',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {TuiMultiSelectModule, TuiTextfieldControllerModule} from '@taiga-ui/lega
})
export default class Example {
protected readonly items = [
'Luke Skywalker',
'Luke Skywalker and a long time ago in a galaxy far, far away..',
'Leia Organa Solo',
'Darth Vader',
'Han Solo',
Expand Down
4 changes: 4 additions & 0 deletions projects/legacy/components/input-tag/input-tag.style.less
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@
:host[data-size='l']:not(._label-outside) & {
padding: 0;
}

tui-tag:last-of-type {
max-inline-size: 80%;
}
}

.t-content {
Expand Down

0 comments on commit 54f5c65

Please sign in to comment.