mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
TablePanel: Fix JSON tooltip positioning (#24420)
* Fix block element and overflow * Width not needed * Add to styles file
This commit is contained in:
parent
243fa5ea63
commit
f714357fbf
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user