Repository navigation
feat(web): enlarge project avatars in the sidebar - #827
Conversation
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
There was a problem hiding this comment.
ℹ️ Minor suggestion only — nothing blocking.
Approach: sound — three direct size preset bumps reuse the shared EntityAvatar API, and no sidebar container has a fixed height, so the ~4px taller rows reflow cleanly.
Reviewed changes — read the whole 1-file / 3-hunk diff, ui/avatar.tsx, ui/dropdown-menu.tsx, and #826's diff for the paired font-size fix.
- Header switcher states bumped to
sm— the placeholder row when the current user is still loading and theDropdownMenuTriggerboth move from 20px to 24px. - Dropdown rows bumped to
sm— each "Your Projects" item avatar is 24px, matching the trigger above it. - Initials do not get bigger yet — the
text-[10px]in thesmpreset lands on the Avatar root and loses toAvatarFallback's owntext-sm, so today this is a larger box around the same 14px initials; #826'sFALLBACK_TEXT[size]is what turns them into 10px.
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏
The folder mark stayed at size-3 (12px) when the avatar grew from 20px to 24px, shrinking it from 60% to 50% of the box. size-3.5 keeps the ratio, matching how Paca-AI#826 scaled its fallback icons. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The browser dialog was a sibling of the link dialog, so base-ui saw two unrelated dialogs that each listen for Escape on the document. When Escape landed before focus had moved into the browser, both closed and the link form was lost. Rendering the browser inside the link dialog's content makes base-ui treat it as nested, so Escape closes only the browser. This also fixes the flaky "shows the platform's reason on error and keeps the form usable" test. Co-Authored-By: Claude Opus 5.5 <[email protected]>
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes — re-reviewed the two commits since the prior pullfrog review, reading both changed files plus GitRepositoryPicker.tsx, ui/dialog.tsx, the GitSettings browse tests, and base-ui's nested-dialog handling.
- Fallback icon scaled to
size-3.5— both headerEntityAvatarsites now keep the folder mark proportional inside the 24px box, matching the convention #826 uses. - Repository browser nested inside the link dialog —
GitRepositoryBrowserDialognow renders within the linkDialogContent, so base-ui registers it as a nested dialog (the pinned@base-ui/react1.4.1 derives nesting from the React tree, independent of the portal). Escape closes only the browser, which is exactly what the previously flakyGitSettingstest asserts.
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏
pikann
left a comment
There was a problem hiding this comment.
LGTM! Thank you for the contribution! 🚀

Summary
size-3tosize-3.5so it keeps the same proportion in the larger avatar (as fix(web): keep avatar initials inside avatars and enlarge them #826 did for its fallbacks).GitSettingstest that failed this PR's CI: the repository browser dialog was rendered next to the link dialog instead of inside it, so an early Escape could close both and lose the link form. It is now nested, so Escape closes only the browser.Pairs with #826, which fixes initials spilling out of small avatars; this PR is independent of it.
Test plan
tscand Biome cleanGitSettings.test.tsxpasses repeatedly (it failed 2 of 3 runs before the fix)🤖 Generated with Claude Code