Skip to content

Commit

Permalink
Ensure selected row color takes precedence
Browse files Browse the repository at this point in the history
  • Loading branch information
carbonrobot committed Nov 16, 2023
1 parent c8d8ea7 commit edf0075
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/clean-beds-pull.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@envyjs/webui': patch
---

Ensure selected row color takes precendence
3 changes: 2 additions & 1 deletion packages/webui/src/components/ui/TraceListRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ export default function TraceListRow({ trace }: { trace: Trace }) {
key={trace.id}
onClick={() => setSelectedTrace(trace.id)}
className={tw(
'table-row h-11 hover:bg-apple-200 hover:cursor-pointer hover:text-apple-900 even:bg-manatee-200 text-manatee-800',
'table-row h-11 hover:bg-apple-200 hover:cursor-pointer hover:text-apple-900 text-manatee-800',
trace.http?.state === HttpRequestState.Sent && 'text-manatee-500',
trace.id !== selectedTraceId && 'even:bg-manatee-200',
trace.id === selectedTraceId && 'bg-manatee-400 text-manatee-950',
)}
>
Expand Down

0 comments on commit edf0075

Please sign in to comment.