Skip to content

Commit c1fd338

Browse files
authored
fix: fix searching logic, drag handle (#964)
1 parent 0ac94a8 commit c1fd338

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

frontend/components/traces/span-view/common.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,15 @@ export const ResizableWrapper = ({
4343
}}
4444
handleComponent={{
4545
bottom: (
46-
<div className="flex items-center justify-center w-full h-2 cursor-ns-resize hover:bg-accent/50 transition-colors group">
46+
<div className="flex items-center justify-center w-full h-2">
4747
<GripHorizontal className="w-4 h-4 text-muted-foreground" />
4848
</div>
4949
),
5050
}}
5151
handleStyles={{
5252
bottom: {
5353
bottom: 0,
54-
height: "8px",
54+
height: "4px",
5555
cursor: "ns-resize",
5656
},
5757
}}

frontend/components/traces/trace-view/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { get } from "lodash";
2-
import { AlertTriangle, ChartNoAxesGantt, FileText,ListFilter, Minus, Plus, Search, Sparkles } from "lucide-react";
2+
import { AlertTriangle, ChartNoAxesGantt, FileText, ListFilter, Minus, Plus, Search, Sparkles } from "lucide-react";
33
import { useParams, usePathname, useRouter, useSearchParams } from "next/navigation";
44
import React, { useCallback, useEffect, useMemo } from "react";
55

@@ -300,7 +300,7 @@ const PureTraceView = ({ traceId, spanId, onClose, propsTrace }: TraceViewProps)
300300
setSearchEnabled(!searchEnabled);
301301
}, [fetchSpans, searchEnabled, setSearch, setSearchEnabled, search]);
302302

303-
const isLoading = isTraceLoading || (isSpansLoading && !traceError && !spansError);
303+
const isLoading = isTraceLoading && !trace;
304304

305305
useEffect(() => {
306306
if (!isSpansLoading) {

0 commit comments

Comments
 (0)