From 61053ec09919278f0d6012c2b18b0f5f558dc448 Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 11 Mar 2019 00:45:15 -0700 Subject: [PATCH] better css --- packages/grafana-ui/src/components/Table/Table.tsx | 6 ++---- packages/grafana-ui/src/components/Table/_Table.scss | 4 +++- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/grafana-ui/src/components/Table/Table.tsx b/packages/grafana-ui/src/components/Table/Table.tsx index 4f7dce29f0d..2734bc0e706 100644 --- a/packages/grafana-ui/src/components/Table/Table.tsx +++ b/packages/grafana-ui/src/components/Table/Table.tsx @@ -212,7 +212,7 @@ export class Table extends Component { const isHeader = row < 0; const rowData = isHeader ? data.columns : data.rows[row]; - const value = rowData ? rowData[column] : `[${columnIndex}:${rowIndex}]`; + const value = rowData ? rowData[column] : ''; const builder = isHeader ? this.headerBuilder : this.getTableCellBuilder(column); return ( @@ -277,10 +277,8 @@ export class Table extends Component { height={height} fixedColumnCount={fixedColumnCount} fixedRowCount={fixedRowCount} - classNameTopLeftGrid="gf-table-fixed-row-and-column" - classNameTopRightGrid="gf-table-fixed-row" + classNameTopLeftGrid="gf-table-fixed-column" classNameBottomLeftGrid="gf-table-fixed-column" - classNameBottomRightGrid="gf-table-normal-cell" /> ); } diff --git a/packages/grafana-ui/src/components/Table/_Table.scss b/packages/grafana-ui/src/components/Table/_Table.scss index 05569f84e2e..81b63d5e3c7 100644 --- a/packages/grafana-ui/src/components/Table/_Table.scss +++ b/packages/grafana-ui/src/components/Table/_Table.scss @@ -66,6 +66,8 @@ .gf-table-cell { padding: 3px 10px; + background: $page-gradient; + text-overflow: ellipsis; white-space: nowrap; @@ -74,5 +76,5 @@ } .gf-table-fixed-column { - border-right: 1px solid #ccc; + border-right: 1px solid #CCC; }