diff --git a/web/src/components/Trace/Trace.tsx b/web/src/components/Trace/Trace.tsx index cb1e33ef01..824b40e5cf 100644 --- a/web/src/components/Trace/Trace.tsx +++ b/web/src/components/Trace/Trace.tsx @@ -1,6 +1,5 @@ import {useCallback, useEffect, useMemo, useState} from 'react'; import styled from 'styled-components'; -import {useNavigate} from 'react-router-dom'; import {useStoreActions} from 'react-flow-renderer'; import {ReflexContainer, ReflexSplitter, ReflexElement} from 'react-reflex'; @@ -33,6 +32,7 @@ import TestResults from './TestResults'; const Grid = styled.div` display: grid; + height: calc(100vh - 200px); `; export type TSpanInfo = { @@ -51,7 +51,6 @@ type TraceProps = { }; const Trace: React.FC = ({testId, testResultId, onDismissTrace, onRunTest}) => { - const navigate = useNavigate(); const [selectedSpan, setSelectedSpan] = useState(); const [traceResultList, setTraceResultList] = useState([]); const [isFirstLoad, setIsFirstLoad] = useState(true); @@ -165,7 +164,12 @@ const Trace: React.FC = ({testId, testResultId, onDismissTrace, onRu
- +
diff --git a/web/src/components/TraceDiagram/TraceDiagram.tsx b/web/src/components/TraceDiagram/TraceDiagram.tsx index 8341b24cfe..1c3ea1eff8 100644 --- a/web/src/components/TraceDiagram/TraceDiagram.tsx +++ b/web/src/components/TraceDiagram/TraceDiagram.tsx @@ -69,7 +69,7 @@ const TraceDiagram = ({spanMap, trace, selectedSpan, onSelectSpan}: IPropsTraceD }, [dagLayout, spanMap, trace, selectedSpan?.id]); return ( - +