Skip to content

Commit 4a19be2

Browse files
committed
Improve flexbox css, table footer stays at the bottom
Signed-off-by: Carlos Martín <[email protected]>
1 parent 898c1f4 commit 4a19be2

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

frontend/src/components/ResultsTable.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React, { Component } from 'react';
22
import PropTypes from 'prop-types';
33
import ReactTable from 'react-table';
44
import 'react-table/react-table.css';
5+
import './ResultsTable.less';
56

67
class ResultsTable extends Component {
78
render() {
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.results-table {
2+
flex-grow: 1;
3+
flex-basis: 150px;
4+
min-height: 150px;
5+
6+
.rt-tr-group {
7+
flex: 0 0 auto !important;
8+
}
9+
}

frontend/src/components/TabbedResults.less

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,19 @@
99
}
1010

1111
.tab-content {
12-
flex: auto 1;
12+
flex: 1 1 auto;
1313

1414
display: flex;
1515
flex-direction: column;
1616

1717
> .tab-pane {
18-
height: 100%;
19-
flex: auto 1;
18+
flex: 1 1 auto;
2019
padding-top: 2em;
2120

2221
&[aria-hidden='false'] {
2322
display: flex;
2423
flex-direction: column;
2524
}
26-
27-
.results-table {
28-
flex-grow: 1;
29-
flex-basis: 150px;
30-
min-height: 150px;
31-
}
3225
}
3326
}
3427

0 commit comments

Comments
 (0)