Skip to content

Commit

Permalink
style :: z-index 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
dutexion committed Aug 8, 2024
1 parent ae90d75 commit adff727
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/graph/TraceErrorGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,5 @@ export const TraceErrorGraph: React.FC<PlotlyChartProps> = ({ jsonData }) => {
}
}, [jsonData]);

return <div ref={chartRef} />;
return <div ref={chartRef} style={{ position: 'relative', zIndex: '0' }} />;
};
4 changes: 1 addition & 3 deletions src/components/graph/TraceLatencyGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ interface PlotlyChartProps {
}

export const TraceLatencyGraph: React.FC<PlotlyChartProps> = ({ jsonData }) => {
console.log(jsonData);

const chartRef = useRef<HTMLDivElement>(null);

useEffect(() => {
Expand Down Expand Up @@ -91,5 +89,5 @@ export const TraceLatencyGraph: React.FC<PlotlyChartProps> = ({ jsonData }) => {
}
}, [jsonData]);

return <div ref={chartRef} />;
return <div ref={chartRef} style={{ position: 'relative', zIndex: '0' }} />;
};
2 changes: 1 addition & 1 deletion src/components/graph/TraceRequestGraph.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,5 @@ export const TraceRequestGraph: React.FC<PlotlyChartProps> = ({ jsonData }) => {
}
}, [jsonData]);

return <div ref={chartRef} />;
return <div ref={chartRef} style={{ position: 'relative', zIndex: '0' }} />;
};

0 comments on commit adff727

Please sign in to comment.