Skip to content

Commit

Permalink
Move scroll outside so test can pass
Browse files Browse the repository at this point in the history
  • Loading branch information
carbonrobot committed Nov 15, 2023
1 parent e064ddb commit 4845456
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions packages/webui/src/components/ui/TraceList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ export default function TraceList({ autoScroll: initialAutoScroll = true }: Trac

return (
<div className="h-full flex flex-col bg-manatee-100">
{!hasTraces ? (
<TraceListPlaceholder />
) : (
<div
data-test-id="scroll-container"
ref={scrollContainer}
onScroll={handleScroll}
className="flex-1 overflow-y-auto"
>
<div
data-test-id="scroll-container"
ref={scrollContainer}
onScroll={handleScroll}
className="flex-1 overflow-y-auto"
>
{!hasTraces ? (
<TraceListPlaceholder />
) : (
<div data-test-id="trace-list" className="table table-fixed w-full">
<div className="table-header-group font-bold sticky top-0 uppercase">
<TraceListHeader className="w-[110px]">Method</TraceListHeader>
Expand All @@ -68,8 +68,8 @@ export default function TraceList({ autoScroll: initialAutoScroll = true }: Trac
))}
</div>
</div>
</div>
)}
)}
</div>
{hasTraces && (
<div className="flex flex-row items-center p-3 bg-manatee-200 border-t border-manatee-400">
<div data-test-id="trace-count" className="flex-1 font-bold uppercase text-xs">
Expand Down

0 comments on commit 4845456

Please sign in to comment.