-
Notifications
You must be signed in to change notification settings - Fork 4.5k
fix(web): wrap phase rail dots and center the context meter ring #7243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -217,13 +217,13 @@ function PhaseRail({ group }: { group: AgentPanelWorkflowGroup }) { | |
| return ( | ||
| <div className="flex flex-wrap items-center gap-x-1 gap-y-1 px-1.5 pb-1 pt-1.5"> | ||
| {group.phases.map((phase, index) => ( | ||
| <div key={phase.index} className="flex items-center gap-1"> | ||
| <div key={phase.index} className="flex min-w-0 max-w-full items-center gap-1"> | ||
| {index > 0 ? ( | ||
| <ChevronRight aria-hidden className="size-3 text-muted-foreground/40" /> | ||
| <ChevronRight aria-hidden className="size-3 shrink-0 text-muted-foreground/40" /> | ||
| ) : null} | ||
| <div | ||
| className={cn( | ||
| "flex items-center gap-1 rounded-sm border px-1.5 py-0.5", | ||
| "flex min-w-0 items-center gap-1 rounded-sm border px-1.5 py-0.5", | ||
| phase.state === "running" | ||
| ? "border-info/40" | ||
| : phase.state === "done" | ||
|
|
@@ -233,7 +233,7 @@ function PhaseRail({ group }: { group: AgentPanelWorkflowGroup }) { | |
| > | ||
| <span | ||
| className={cn( | ||
| "font-mono text-[.65rem]", | ||
| "shrink-0 font-mono text-[.65rem]", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When Claude reports a multiword phase title wider than the available rail, Useful? React with 👍 / 👎. |
||
| phase.state === "running" | ||
| ? "text-info-foreground" | ||
| : phase.state === "done" | ||
|
|
@@ -244,7 +244,7 @@ function PhaseRail({ group }: { group: AgentPanelWorkflowGroup }) { | |
| {phase.state === "done" ? "✓ " : ""} | ||
| {phase.title} | ||
| </span> | ||
| <span className="flex items-center gap-0.5"> | ||
| <span className="flex min-w-0 flex-wrap items-center gap-0.5"> | ||
| {phase.members.length === 0 ? ( | ||
| <span className="font-mono text-[.6rem] text-muted-foreground/50">–</span> | ||
| ) : ( | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shrink-0here works against themin-w-0/max-w-fulladded to the segment and chip: the chip can now shrink below its content width, but the title can't shrink and has no clipping, so a long phase title renders outside the chip's border (and past the section, which has nooverflow-hidden) rather than being contained. Truncating the title instead keeps the chip's border box and single-line geometry intact and matches the workflow-name span in this file (min-w-0 truncate, line 403).Posted via Macroscope — UI Consistency