Skip to content

Commit 84c38c1

Browse files
committed
Improved Root badge style
1 parent 8425361 commit 84c38c1

File tree

2 files changed

+3
-5
lines changed
  • apps/webapp/app
    • components/primitives
    • routes/_app.orgs.$organizationSlug.projects.v3.$projectParam.runs.$runParam

2 files changed

+3
-5
lines changed

apps/webapp/app/components/primitives/Badge.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const variants = {
77
small:
88
"grid place-items-center rounded-full px-[0.4rem] h-4 tracking-wider text-xxs bg-background-dimmed text-text-dimmed uppercase whitespace-nowrap",
99
"extra-small":
10-
"grid place-items-center rounded-full px-1.5 h-4 border-tracking-wider text-xxs bg-background-bright text-blue-500 whitespace-nowrap",
10+
"grid place-items-center border border-charcoal-650 rounded-sm px-1 h-4 border-tracking-wider text-xxs bg-background-bright text-blue-500 whitespace-nowrap",
1111
outline:
1212
"grid place-items-center rounded-sm px-1.5 h-5 tracking-wider text-xxs border border-dimmed text-text-dimmed uppercase whitespace-nowrap",
1313
"outline-rounded":

apps/webapp/app/routes/_app.orgs.$organizationSlug.projects.v3.$projectParam.runs.$runParam/route.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -612,9 +612,7 @@ function TasksTreeView({
612612
className="h-4 min-h-4 w-4 min-w-4"
613613
/>
614614
<NodeText node={node} />
615-
{node.data.isRoot && !rootRun && (
616-
<Badge variant="outline-rounded">Root</Badge>
617-
)}
615+
{node.data.isRoot && !rootRun && <Badge variant="extra-small">Root</Badge>}
618616
</div>
619617
<div className="flex items-center gap-1">
620618
<NodeStatusIcon node={node} />
@@ -660,7 +658,7 @@ function TasksTreeView({
660658
/>
661659
</ResizablePanel>
662660
</ResizablePanelGroup>
663-
<div className="flex items-center justify-between gap-2 border-t border-grid-dimmed px-2">
661+
<div className="flex items-center justify-between gap-2 border-t border-grid-dimmed px-4">
664662
<div className="grow @container">
665663
<div className="hidden items-center gap-4 @[42rem]:flex">
666664
<KeyboardShortcuts

0 commit comments

Comments
 (0)