Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(legacy): limit tui-tag width to 80% to avoid wrapping in selects #9886

Merged
merged 1 commit into from
Dec 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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..',
splincode marked this conversation as resolved.
Show resolved Hide resolved
'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
Loading