Repository navigation
feat(perch): hide the Sessions column on desktop while a chat is open - #529
Merged
Merged
Conversation
…open A collapse button beside the Sessions heading hides the list; a Sessions button at the start of the chat head brings it back. The choice persists per device in localStorage, is applied before the bootstrap opens a session, and a collapsed list stops polling. The rules live in their own CSS module, scoped to the split breakpoint and an open chat, so the phone is unchanged. Claude-Session: https://claude.ai/code/session_018NdSnyJQFrSGdr7cGnVoXL
…ot name beside the reveal button In a real browser at 1280x900: a real click hides the column and the chat gains its width, focus moves to the reveal control, the choice survives a reload without loading the hidden list, Enter and Space toggle it, Send stays reachable, and it holds with the artifact split pane open. At 412x730 the phone is unchanged whatever is stored, and five Turbo visits with toggling add no window or document listeners. The collapsed chat head now keeps the bot name next to the Sessions button instead of at the far edge. Claude-Session: https://claude.ai/code/session_018NdSnyJQFrSGdr7cGnVoXL
…t a text size The single-source-of-truth guard rejected any localStorage mention in the Perch client. It still rejects every text-size key or scale; the two accesses of crow-perch-sessions-collapsed are taken out before the check. Claude-Session: https://claude.ai/code/session_018NdSnyJQFrSGdr7cGnVoXL
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.
On wide screens (900 px and up) with a chat open, a button beside the Sessions heading hides the session list and the chat takes the full width. A "Sessions" button at the start of the chat header brings it back. Focus moves to whichever button is still on screen, and both work with Enter and Space.
crow-perch-sessions-collapsed) and applied before the page opens a session, so a direct link to a chat opens already collapsed.perch-hub/sessions-collapse-css.js), socss.jsandlayout.jsare untouched.perch.hideSessions/perch.showSessions(en/es). No keyboard shortcut in this PR.Tests: static, unit and live headless-Chrome checks at 1280×900 (collapse, reload, keyboard, Send stays reachable, artifact pane open) and 412×730 (phone pixel-identical), plus a Turbo listener-leak guard. Full suite 10152 pass, 0 fail.
https://claude.ai/code/session_018NdSnyJQFrSGdr7cGnVoXL