From fff6e0a52298425f6de1c45466f92e71e0d96781 Mon Sep 17 00:00:00 2001 From: Steven Sheehy Date: Fri, 15 Mar 2019 08:11:40 -0500 Subject: [PATCH] feature(explore/table): Add tooltips to explore table (#16007) Longer labels are now viewable as a tooltip in the Explore table Signed-off-by: Steven Sheehy --- public/app/features/explore/Table.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/public/app/features/explore/Table.tsx b/public/app/features/explore/Table.tsx index 4946a6a505d..bbf338df8f9 100644 --- a/public/app/features/explore/Table.tsx +++ b/public/app/features/explore/Table.tsx @@ -40,11 +40,15 @@ export default class Table extends PureComponent { const tableModel = data || EMPTY_TABLE; const columnNames = tableModel.columns.map(({ text }) => text); const columns = tableModel.columns.map(({ filterable, text }) => ({ - Header: text, + Header: () => {text}, accessor: text, className: VALUE_REGEX.test(text) ? 'text-right' : '', show: text !== 'Time', - Cell: row => {row.value}, + Cell: row => ( + + {row.value} + + ), })); const noDataText = data ? 'The queries returned no data for a table.' : '';