Repository navigation
fix(repo-icon): round project image icons on desktop to match mobile - #37383
Conversation
Mobile rounds project image icons with a 4px radius, but desktop draws them with square corners, so the same avatar looks different across clients and sits awkwardly beside the rounded sidebar controls. Apply the same 4px radius to the image in RepoIconGlyph so every desktop surface picks it up. Emoji and lucide icons are unchanged. Covered by a repo-icon test that failed before the change.
|
No actionable comments were generated in the recent review.
|
ELI5
Project pictures have rounded corners on the phone but square corners on desktop. Desktop now rounds them the same way.
What Changed
Before: desktop draws project image icons with square corners.
After: they use a 4px radius, matching mobile.
The radius is on the image in
RepoIconGlyph, so every desktop surface using it picks it up. Emoji and lucide icons are unchanged.iconClassNamecan still override it.Why
rounded-[4px]matches mobile'sradii.markand is already used in the sidebar. Therounded-smtoken is 6px here, which makes a 14px icon nearly circular. Because the image usesobject-contain, a non-square image isn't cropped, so its visible corners may stay square.Linked Issue
Fixes #37382
Visual Proof
Before and after at sidebar (14px) and settings (20px) icon sizes, 3× zoom. This is a Chromium render of the same CSS on a standalone page, not a screenshot of the running app:
Testing
oxlint(design-system config) andoxfmtpass on the changed files.tscon the web project reports no errors in these files. It reports 4 insrc/main/telemetry/client.ts, which this change doesn't touch.Not run: the running desktop app, or the full
pnpm lint,pnpm typecheck,pnpm testandpnpm build.AI Disclosure
Made with Claude Opus 5.5.
Review
Agent skill upstream boundary
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
CSS only, so it behaves the same across platforms and remote hosts. Mobile is unchanged.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)