Skip to content

Commit

Permalink
chore :: trace 펼쳤을 때 스크롤 히든
Browse files Browse the repository at this point in the history
  • Loading branch information
dutexion committed Aug 29, 2024
1 parent 710cd31 commit 6311aa5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/pages/Team/deploy/Container/Traces.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,17 @@ export const TeamDeployContainerTraces = () => {
const [error, setError] = useState<JsonData>();
const [latency, setLatency] = useState<JsonData>();
const { deployUUID, env } = useParams();
const bodySelector = document.querySelector('body');

useEffect(() => {
if (selectedTrace) {
if (!bodySelector) return;
bodySelector.style.overflowY = 'hidden';
} else {
if (!bodySelector) return;
bodySelector.style.overflowY = 'auto';
}
}, [selectedTrace]);

useEffect(() => {
if (deployUUID && env) {
Expand Down

0 comments on commit 6311aa5

Please sign in to comment.