Fix inspector adapters view on narrow screens (#27669) (#28832)

* Disable responsiveness of table in small screens

Disabling the resposiveness of cells and table will avoid showing
empty areas around elements of the inspector table.

* Fix responsive table in requests view stats

* Remove tableLayout inline style
This commit is contained in:
Marco Vettorello 2019-01-16 15:25:31 +01:00 committed by GitHub
parent 0cd47aad48
commit afa85699d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -38,6 +38,7 @@ class DataTableFormat extends Component {
static renderCell(col, value, isFormatted) {
return (
<EuiFlexGroup
responsive={false}
gutterSize="s"
alignItems="center"
>
@ -46,6 +47,7 @@ class DataTableFormat extends Component {
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiFlexGroup
responsive={false}
gutterSize="none"
alignItems="center"
>
@ -128,6 +130,7 @@ class DataTableFormat extends Component {
</EuiFlexGroup>
<EuiSpacer size="s" />
<EuiInMemoryTable
responsive={false}
className="insDataTableFormat__table"
data-test-subj="inspectorTable"
columns={columns}

View file

@ -65,7 +65,9 @@ class RequestDetailsStats extends Component {
const sortedStats = Object.keys(stats).sort().map(name => ({ name, ...stats[name] }));
// TODO: Replace by property once available
return (
<EuiTable style={{ tableLayout: 'auto' }}>
<EuiTable
responsive={false}
>
<EuiTableBody>
{ sortedStats.map(this.renderStatRow) }
</EuiTableBody>