[Discover] Fix grid styles to enable better wrapping (#162325)

Closes https://github.com/elastic/kibana/issues/162304

## Summary

This PR fixes the issue with cell content wrapping. Before it was just
cut off. Now it falls to the next line.

Please check that there is no regression for
https://github.com/elastic/kibana/pull/139449

Before:
<img width="600" alt="Screenshot 2023-07-20 at 15 03 16"
src="c91e0922-33a2-4008-a797-8f04f1b0b758">

After:
<img width="600" alt="Screenshot 2023-07-20 at 15 02 34"
src="754ee9f3-b33c-4c31-b27d-801e3fe89c78">


### Checklist

- [x] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [x] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)
This commit is contained in:
Julia Rechkunova 2023-07-31 15:54:47 +02:00 committed by GitHub
parent 4eac242818
commit 770c4a2b53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -119,8 +119,8 @@
}
.dscDiscoverGrid__descriptionListDescription {
word-break: normal !important;
white-space: nowrap;
word-break: break-all;
white-space: normal;
// Special handling for images coming from the image field formatter
img {