Skip to content

Commit

Permalink
Ensure selected row color takes precedence (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
carbonrobot authored Nov 16, 2023
1 parent c8d8ea7 commit 0892b1f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
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
4 changes: 2 additions & 2 deletions packages/webui/src/components/ui/TraceListRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +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 && 'bg-manatee-400 text-manatee-950',
trace.id === selectedTraceId ? 'bg-manatee-400 text-manatee-950' : 'even:bg-manatee-200',
)}
>
<TraceListRowCell data-test-id="column-data-method-cell">
Expand Down

0 comments on commit 0892b1f

Please sign in to comment.