Skip to content

Commit

Permalink
Redesign RequestTab again (#1076)
Browse files Browse the repository at this point in the history
Trying to get it to in a small width better
  • Loading branch information
alvarlagerlof authored Jun 10, 2024
1 parent f8836e5 commit 22cbbbf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
11 changes: 11 additions & 0 deletions .changeset/metal-kings-sneeze.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"@rsc-parser/core": minor
"@rsc-parser/embedded-example": minor
"@rsc-parser/chrome-extension": minor
"@rsc-parser/embedded": minor
"@rsc-parser/react-client": minor
"@rsc-parser/storybook": minor
"@rsc-parser/website": minor
---

Redesign `RequestTab` again
10 changes: 5 additions & 5 deletions packages/core/src/components/ViewerStreams.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,16 @@ function RequestTab({ events }: { events: RscEvent[] }) {
const { status } = responseEvent?.data ?? {};

return (
<div className="flex w-full flex-row items-center gap-2 rounded-md border-none px-1.5 py-0.5 text-left group-aria-selected:bg-slate-200 dark:group-aria-selected:bg-slate-700">
<div className="flex w-full flex-row items-center gap-2 rounded-md border-none px-1.5 py-1 text-left group-aria-selected:bg-slate-200 dark:group-aria-selected:bg-slate-700">
<div
className="size-[14px] min-h-[14px] min-w-[14px] rounded-full"
className="h-5 min-h-5 w-1 min-w-1 rounded-md"
style={{
background: getColorForFetch(events[0].data.requestId),
}}
></div>
<div className="flex flex-col gap-0.5">
<span className="inline-block w-[10ch] text-slate-500 dark:text-slate-400">
{method} ({status ?? "..."})
<div className="flex flex-row gap-1">
<span className="inline-block min-w-[4ch] font-medium text-slate-500 dark:text-slate-400">
{method} {status !== 200 && status !== undefined ? `(${status})` : ""}
</span>
<div>
<span className="text-slate-900 dark:text-white">
Expand Down

0 comments on commit 22cbbbf

Please sign in to comment.