mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Panel inspect: Horizontal scrolling in Data table (#22245)
* First try at horizontal scrolling * move width logic to table * Update packages/grafana-ui/src/components/Table/Table.tsx Co-Authored-By: Dominik Prokop <dominik.prokop@grafana.com> * wrap table with memo * fix typo * re add field * WIP: Table scrolling troubles * Annother approach * Think it's working * Removed unnessary change * Table: Added custom scrollbar for horizontal scrolling * Removed console log and fixed test Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com> Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
This commit is contained in:
@@ -219,6 +219,7 @@ export class PanelInspector extends PureComponent<Props, State> {
|
||||
if (width === 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<div style={{ width, height }}>
|
||||
<Table width={width} height={height} data={processed[selected]} />
|
||||
|
||||
Reference in New Issue
Block a user