Repository navigation
Widen the compact sidebar drawer - #5033
Merged
SawyerHood merged 1 commit intoOct 6, 2026
Merged
Conversation
The compact sidebar drawer was min(76vw, 320px), 296px on a 390px phone. A rail-style navigation plugin takes 60px of that, leaving 236px for the thread list. The drawer is now min(86vw, 360px): 335px on the same phone, with a 55px strip of the thread left to tap for dismissal. The Plugin Guide's compact navigation wireframe mirrors the new fraction. Co-Authored-By: Claude Code <[email protected]>
SawyerHood
deleted the
bb/increase-sidebar-space-on-mobile-thr_cp3878sm6d
branch
October 6, 2026 18:06
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human comments
What was wrong
The compact sidebar drawer is
min(76vw, 320px)wide, which is 296px on a 390px phone. A rail-style navigation plugin (theexperimental_sidebarNavigationslot) draws its icon strip inside that drawer and takes 60px of it on touch devices, leaving 236px for the thread list. Thread titles truncate after about 16 characters.What changed
apps/app/src/components/ui/sidebar.tsx: the compact drawer is nowmin(86vw, 360px). On a 390px phone that is 335px, leaving a 55px strip of the thread visible to tap for dismissal. The pixel cap moves intoSIDEBAR_MOBILE_MAX_WIDTH_PX, so the CSS width and the JS width used by the swipe gestures come from the same two constants.plugins/plugin-api-docs/src/wireframes.tsx: the Plugin Guide's compact navigation wireframe mirrors the new fraction.apps/app/src/components/ui/sidebar.test.tsx: the expected open offset follows the new cap.The wider drawer applies to every compact viewport, not only when a rail is present; the host cannot tell whether a navigation plugin draws one. The right panel shelf (
--secondary-panel-width-mobile) keepsmin(76vw, 320px).No plugin API, CLI, configuration, or server/daemon wire change.
How you verified
vitest run src/components/ui/sidebar.test.tsx src/components/layout src/components/sidebar src/components/secondary-panelinapps/app: 73 files, 715 tests pass. Run directly because the@bb/apptest script's PWA icon check reports the committed icons as out of date on the local machine before vitest starts.pnpm exec turbo run typecheck lint --filter=@bb/apppasses.pnpm exec turbo run test typecheck --filter=bb-plugin-plugin-api-docspasses (13 files, 75 tests).🤖 Generated with Claude Code