Skip to content

Commit

Permalink
Use grab cursor for xyz
Browse files Browse the repository at this point in the history
  • Loading branch information
codeincarnate committed May 20, 2024
1 parent 40a0145 commit 4e80188
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/XYZChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { useTheme2 } from '@grafana/ui';
import { XYZChartOptions as XYZChartOptions } from 'models.gen';
import { preparePlotByDims, preparePlotByExplicitSeries } from 'utils';

interface Props extends PanelProps<XYZChartOptions> {}
interface Props extends PanelProps<XYZChartOptions> { }

export const XYZChart: React.FC<Props> = (props) => {
const theme = useTheme2();
Expand Down Expand Up @@ -46,7 +46,7 @@ export const XYZChart: React.FC<Props> = (props) => {

return (
<>
{ !isMounted ? <div className="panel-empty"/> : (<Suspense fallback={null}><Canvas frames={frames} options={options} /></Suspense>) }
{!isMounted ? <div className="panel-empty" /> : (<Suspense fallback={null}><div style={{ cursor: 'grab', width: '100%', height: '100%' }}><Canvas frames={frames} options={options} /></div></Suspense>)}
</>
);
);
};

0 comments on commit 4e80188

Please sign in to comment.