Skip to content

Chat sidebar: one pane scroll + collapsable session groups - #229

Open
arsenmuk wants to merge 1 commit into
mainfrom
arsenmuk/session-sidebar-scroll-collapse
Open

Chat sidebar: one pane scroll + collapsable session groups#229
arsenmuk wants to merge 1 commit into
mainfrom
arsenmuk/session-sidebar-scroll-collapse

Conversation

@arsenmuk

Copy link
Copy Markdown
Member

Chat sidebar: one pane scroll + collapsable session groups

With many sessions the list was clipped at screen height with no scrollbar, and groups couldn't be collapsed.

  • Scroll fix: the flex-1 overflow-y-auto list container lacked min-h-0, so it never shrank and overflow-y-auto never engaged (content clipped by the parent overflow-hidden). Add min-h-0 → one working scrollbar for the whole pane; all sessions reachable.
  • Collapsable groups: Running / Starred / date groups get a chevron toggle (mirrors the existing System group); collapse state persists in localStorage.
    Frontend-only (SessionSidebar.tsx); npm run build green.

🤖 Generated with Claude Code

The flex-1 list container lacked min-h-0, so it never shrank below its
content and overflow-y-auto never engaged — the list was clipped at
screen height by the parent overflow-hidden, with no scrollbar. Add
min-h-0 so the whole pane scrolls in one scrollbar and every session in
every group is reachable.

Also make the Running / Starred / date groups collapsable via a chevron
header (mirrors the existing System group); collapse state persists in
localStorage and the active session's group auto-expands so it is never
hidden on load.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant