Skip to content

Commit

Permalink
[8.12] [UnifiedFieldList] Fix item line breaks (#172954) (#173004)
Browse files Browse the repository at this point in the history
# Backport

This will backport the following commits from `main` to `8.12`:
- [[UnifiedFieldList] Fix item line breaks
(#172954)](#172954)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Julia
Rechkunova","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-12-09T09:01:06Z","message":"[UnifiedFieldList]
Fix item line breaks (#172954)\n\n- Closes
https://github.com/elastic/kibana/issues/170312\r\n\r\n##
Summary\r\n\r\nBefore:\r\n<img width=\"326\" alt=\"Screenshot 2023-12-08
at 15 55
43\"\r\nsrc=\"https://github.com/elastic/kibana/assets/1415710/f1fad658-8305-4b45-b7e3-9059c37b5ef3\">\r\n\r\nAfter:\r\n<img
width=\"327\" alt=\"Screenshot 2023-12-08 at 15 56
14\"\r\nsrc=\"https://github.com/elastic/kibana/assets/1415710/50227a61-c092-4e63-83ce-6e12c95d1e32\">","sha":"d41889bf39a8c514de04b5a7010bb6711544d746","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:DataDiscovery","backport:prev-minor","Feature:UnifiedFieldList","v8.13.0"],"number":172954,"url":"https://github.com/elastic/kibana/pull/172954","mergeCommit":{"message":"[UnifiedFieldList]
Fix item line breaks (#172954)\n\n- Closes
https://github.com/elastic/kibana/issues/170312\r\n\r\n##
Summary\r\n\r\nBefore:\r\n<img width=\"326\" alt=\"Screenshot 2023-12-08
at 15 55
43\"\r\nsrc=\"https://github.com/elastic/kibana/assets/1415710/f1fad658-8305-4b45-b7e3-9059c37b5ef3\">\r\n\r\nAfter:\r\n<img
width=\"327\" alt=\"Screenshot 2023-12-08 at 15 56
14\"\r\nsrc=\"https://github.com/elastic/kibana/assets/1415710/50227a61-c092-4e63-83ce-6e12c95d1e32\">","sha":"d41889bf39a8c514de04b5a7010bb6711544d746"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.13.0","labelRegex":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/172954","number":172954,"mergeCommit":{"message":"[UnifiedFieldList]
Fix item line breaks (#172954)\n\n- Closes
https://github.com/elastic/kibana/issues/170312\r\n\r\n##
Summary\r\n\r\nBefore:\r\n<img width=\"326\" alt=\"Screenshot 2023-12-08
at 15 55
43\"\r\nsrc=\"https://github.com/elastic/kibana/assets/1415710/f1fad658-8305-4b45-b7e3-9059c37b5ef3\">\r\n\r\nAfter:\r\n<img
width=\"327\" alt=\"Screenshot 2023-12-08 at 15 56
14\"\r\nsrc=\"https://github.com/elastic/kibana/assets/1415710/50227a61-c092-4e63-83ce-6e12c95d1e32\">","sha":"d41889bf39a8c514de04b5a7010bb6711544d746"}}]}]
BACKPORT-->

Co-authored-by: Julia Rechkunova <[email protected]>
  • Loading branch information
kibanamachine and jughosta authored Dec 9, 2023
1 parent 4c25934 commit 3cd326b
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 3cd326b

Please sign in to comment.