diff --git a/x-pack/legacy/plugins/code/public/components/main/main.scss b/x-pack/legacy/plugins/code/public/components/main/main.scss index c633337d7e54b..23eb111981a8a 100644 --- a/x-pack/legacy/plugins/code/public/components/main/main.scss +++ b/x-pack/legacy/plugins/code/public/components/main/main.scss @@ -165,18 +165,18 @@ .codeSearch-suggestion--inner { display: flex; - align-items: stretch; flex-grow: 1; align-items: center; white-space: nowrap; } +.codeSearch__suggestionTextContainer { + min-width: 0; + flex: 1; +} + .codeSearch__suggestion-text { color: $euiColorFullShade; - display: flex; - flex-direction: column; - flex-grow: 0; - flex-basis: auto; font-family: $euiCodeFontFamily; margin-right: $euiSizeXL; width: auto; @@ -228,10 +228,6 @@ } .codeSearch-suggestion__description { - flex-grow: 1; - flex-basis: 0%; - display: flex; - flex-direction: column; color: $euiColorDarkShade; overflow: hidden; text-overflow: ellipsis; @@ -242,9 +238,7 @@ .codeSearch-suggestion__token { color: $euiColorFullShade; box-sizing: border-box; - flex-grow: 0; - flex-basis: auto; - width: $euiSizeXL; + flex: 0 0 $euiSizeXL; height: $euiSizeXL; text-align: center; overflow: hidden; diff --git a/x-pack/legacy/plugins/code/public/components/query_bar/components/typeahead/__snapshots__/suggestion_component.test.tsx.snap b/x-pack/legacy/plugins/code/public/components/query_bar/components/typeahead/__snapshots__/suggestion_component.test.tsx.snap index 0d76d9c55f556..711476e92b4c6 100644 --- a/x-pack/legacy/plugins/code/public/components/query_bar/components/typeahead/__snapshots__/suggestion_component.test.tsx.snap +++ b/x-pack/legacy/plugins/code/public/components/query_bar/components/typeahead/__snapshots__/suggestion_component.test.tsx.snap @@ -30,7 +30,9 @@ exports[`render file item 1`] = `