Skip to content

Commit

Permalink
[UnifiedFieldList] Fix item line breaks (#172954)
Browse files Browse the repository at this point in the history
- Closes #170312

## Summary

Before:
<img width="326" alt="Screenshot 2023-12-08 at 15 55 43"
src="https://github.com/elastic/kibana/assets/1415710/f1fad658-8305-4b45-b7e3-9059c37b5ef3">

After:
<img width="327" alt="Screenshot 2023-12-08 at 15 56 14"
src="https://github.com/elastic/kibana/assets/1415710/50227a61-c092-4e63-83ce-6e12c95d1e32">
  • Loading branch information
jughosta authored Dec 9, 2023
1 parent 68139ca commit d41889b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@

.kbnFieldButton__name {
flex-grow: 1;
word-break: break-word;
padding: 0 $euiSizeS;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/kbn-react-field/src/field_button/field_button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export function FieldButton({
<>
{fieldIcon && <span className="kbnFieldButton__fieldIcon">{fieldIcon}</span>}
{fieldName && (
<span className="kbnFieldButton__name">
<span className="kbnFieldButton__name eui-textBreakAll">
<span className="kbnFieldButton__nameInner">{fieldName}</span>
</span>
)}
Expand Down

0 comments on commit d41889b

Please sign in to comment.