[Discover] Fix Document Explorer infinite height growth (#131723)

* [Discover] Fix grid height for various screen sizes

* [Discover] Move the callout out of grid container to improve the layout
This commit is contained in:
Julia Rechkunova 2022-05-09 12:55:22 +02:00 committed by GitHub
parent 45e5d08d27
commit df16573e4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -156,9 +156,9 @@ function DiscoverDocumentsComponent({
</>
)}
{!isLegacy && (
<div className="dscDiscoverGrid">
<>
<DocumentExplorerUpdateCallout />
<>
<DocumentExplorerUpdateCallout />
<div className="dscDiscoverGrid">
<DataGridMemoized
ariaLabelledBy="documentsAriaLabel"
columns={columns}
@ -183,8 +183,8 @@ function DiscoverDocumentsComponent({
rowHeightState={state.rowHeight}
onUpdateRowHeight={onUpdateRowHeight}
/>
</>
</div>
</div>
</>
)}
</EuiFlexItem>
);