Skip to content

Commit fed0ac0

Browse files
donjor-agent[bot]donjor
authored andcommitted
fix(web): narrow issue panels keep the title and number readable
> 🤖 claude/anthropic claude-opus-5-5 (high) ## What Changed - **Issue header:** title keeps a 16rem basis - **Narrow panel:** actions wrap below the title - **Issue chip:** repository truncates first - **Issue number:** stays whole, clear of the toolbar ## Why The header title had `flex-1` with a zero basis, so the actions never wrapped and the title shrank to 29px. The chip reference was `shrink-0`, so it ran under the absolute destination toolbar and the panel icon covered the number. Upstream-triage: fork fix; the issue panel and issue chip exist only in the fork. The file-link chip condition lives in the `markdown-editing` domain and ships in its own PR. ## Close conditions - [x] **Issue header:** title clears the actions - [x] **Issue chip:** icon and number never overlap ## UI Changes Issue header, right panel at 900px: | Before | After | | --- | --- | | ![header-a1.png](https://github.com/user-attachments/assets/23232e6c-7c7a-453e-8b3f-e739c1a37999) | ![header-b1.png](https://github.com/user-attachments/assets/e6c51dab-5ba8-4a76-8442-1b32763d29b8) | Issue chip, chat at 330px: | Before | After | | --- | --- | | ![chip-beforec.png](https://github.com/user-attachments/assets/4238680e-3b61-494e-9365-135cac9800de) | ![chip-afterc.png](https://github.com/user-attachments/assets/377492e0-6c35-4edf-9ecd-ea4136dd300a) | ## Verification | Check | Result | | --- | --- | | Header title width, real Chrome | 29px before, 271px after | | 17 issue chips, real Chrome | number ends at 251, button at 275 | | `vp run typecheck` (web) | exit 0 | | `vp lint` (2 files) | exit 0 | | `vp run build:desktop` | exit 0 | | `vp run fork:ci` | exit 0 | ## Checklist - [x] This PR is small and focused - [x] I explained what changed and why - [x] I included before/after screenshots for any UI changes - [x] I included a video for animation/interaction changes (n/a) Closes #1363 Claude Opus 5.5 via Claude Code in T3 Code. ## Fork trailers Fork-Domain: github-issues Fork-Tier: bugfix Fork-Upstreamable: no <!-- gh-bot:attest {"v":2,"repo":"RSI-Software/t3code-hyprws","ref":"fix/narrow-issue-chips@b9a8c17","agents":[{"role":"host","iface":"claude","provider":"anthropic","model":"claude-opus-5-5","effort":"high","harness":"[email protected]","session":"f01f8046c783"}],"ts":"2026-09-28T23:36:25Z"} --> Co-authored-by: donjor <[email protected]>
1 parent 46aa064 commit fed0ac0

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

‎apps/web/src/components/chat/GitHubDestinationLink.fork.tsx‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,13 +202,20 @@ function GitHubDestinationLink({
202202
>
203203
<GitHubTargetIcon target={linkTarget} />
204204
</span>
205-
<span className="shrink-0 font-mono font-semibold text-primary">{reference}</span>
205+
{/* In a narrow chip the title gives way first, then the repository; the
206+
number stays whole and clear of the destination toolbar. */}
207+
<span className="flex min-w-0 font-mono font-semibold text-primary">
208+
<span className="truncate">{linkTarget.repository}</span>
209+
{linkTarget.number === null ? null : (
210+
<span className="shrink-0">#{linkTarget.number}</span>
211+
)}
212+
</span>
206213
{showTitle ? (
207214
<>
208215
<span className="shrink-0 text-muted-foreground/50" aria-hidden>
209216
·
210217
</span>
211-
<span className="min-w-0 overflow-hidden text-ellipsis whitespace-nowrap text-foreground/85">
218+
<span className="min-w-0 shrink-[1000] overflow-hidden text-ellipsis whitespace-nowrap text-foreground/85">
212219
{children}
213220
</span>
214221
</>

‎apps/web/src/components/githubIssue/GitHubIssueDetailPanel.tsx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,8 @@ export function GitHubIssueDetailContent({
222222
return (
223223
<article className="mx-auto w-full max-w-3xl px-5 py-6 sm:px-8">
224224
<div className="flex flex-wrap items-start gap-3">
225-
<div className="flex min-w-0 flex-1 items-start gap-4">
225+
{/* A 16rem basis wraps the actions below a title that would otherwise be squeezed. */}
226+
<div className="flex min-w-0 flex-[1_1_16rem] items-start gap-4">
226227
<GitHubIssueStateIcon
227228
state={detail.state}
228229
className={cn(

0 commit comments

Comments
 (0)