Skip to content

Commit

Permalink
[Discover] Respect line breaks in Document explorer (#139449)
Browse files Browse the repository at this point in the history
  • Loading branch information
kertal authored Sep 7, 2022
1 parent 44cb3a7 commit d5e4ece
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@
font-size: $euiFontSizeS;
}

.euiDataGridRowCell__definedHeight {
white-space: pre-wrap;
}

.dscDiscoverGrid__inner {
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -75,13 +79,11 @@

// We only truncate if the cell is not a control column.
.euiDataGridHeader {
// This display property is temporary until https://github.com/elastic/eui/issues/4729 is resolved.
display: flex;

.euiDataGridHeaderCell__content {
@include euiTextTruncate;
overflow: hidden;
white-space: nowrap;
white-space: pre-wrap;
flex-grow: 1;
}

Expand Down Expand Up @@ -114,6 +116,7 @@

.dscDiscoverGrid__descriptionListDescription {
word-break: normal !important;
white-space: nowrap;

// Special handling for images coming from the image field formatter
img {
Expand Down

0 comments on commit d5e4ece

Please sign in to comment.