Commit f714357f by Tobias Skarhed Committed by GitHub

TablePanel: Fix JSON tooltip positioning (#24420)

* Fix block element and overflow

* Width not needed

* Add to styles file
parent 243fa5ea
......@@ -21,7 +21,7 @@ export const JSONViewCell: FC<TableCellProps> = props => {
return (
<div className={cx(txt, tableStyles.tableCell)}>
<Tooltip placement="auto" content={content} theme={'info'}>
<span>{displayValue}</span>
<div className={tableStyles.overflow}>{displayValue}</div>
</Tooltip>
</div>
);
......
......@@ -17,6 +17,7 @@ export interface TableStyles {
row: string;
theme: GrafanaTheme;
resizeHandle: string;
overflow: string;
}
export const getTableStyles = stylesFactory(
......@@ -92,6 +93,10 @@ export const getTableStyles = stylesFactory(
white-space: nowrap;
overflow: hidden;
`,
overflow: css`
overflow: hidden;
text-overflow: ellipsis;
`,
resizeHandle: css`
label: resizeHandle;
cursor: col-resize !important;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment