mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
graph legend: fix table alignment
This commit is contained in:
parent
f5a0b0044a
commit
e4b3f31f82
@ -250,7 +250,10 @@ class LegendTable extends PureComponent<Partial<LegendComponentProps>> {
|
||||
const seriesValuesProps = { values, min, max, avg, current, total };
|
||||
return (
|
||||
<table>
|
||||
<tbody>
|
||||
<colgroup>
|
||||
<col style={{ width: '100%' }} />
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style={{ textAlign: 'left' }} />
|
||||
{LEGEND_STATS.map(
|
||||
@ -266,6 +269,8 @@ class LegendTable extends PureComponent<Partial<LegendComponentProps>> {
|
||||
)
|
||||
)}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{seriesList.map((series, i) => (
|
||||
<LegendItem
|
||||
key={`${series.id}-${i}`}
|
||||
|
@ -136,11 +136,10 @@
|
||||
}
|
||||
|
||||
.graph-legend-table {
|
||||
table {
|
||||
width: 100%;
|
||||
}
|
||||
tbody {
|
||||
display: block;
|
||||
position: relative;
|
||||
overflow-y: auto;
|
||||
overflow-x: hidden;
|
||||
padding-bottom: 1px;
|
||||
padding-right: 5px;
|
||||
padding-left: 5px;
|
||||
|
Loading…
Reference in New Issue
Block a user