Skip to content

fix: chat page not full width, scrollbar only works in middle area#634

Merged
pancacake merged 3 commits into
HKUDS:devfrom
Alanaysis:fix/chat-full-width-scroll
Jul 18, 2026
Merged

fix: chat page not full width, scrollbar only works in middle area#634
pancacake merged 3 commits into
HKUDS:devfrom
Alanaysis:fix/chat-full-width-scroll

Conversation

@Alanaysis

Copy link
Copy Markdown
Contributor

Description

Fix chat page layout issue: the chat content was constrained to max-width 960px centered, causing the scrollbar to appear in the middle of the page and scroll wheel only working in the middle area, with

meaningless blank space on both sides. This change moves the scroll container to full width while keeping message content and input box at the original 960px centered width, so scrollbar appears at the far
right and works across the entire page area without changing any visual appearance.

### Module(s) Affected
- [x] `web` (Frontend)

### Checklist
- [x] I have read and followed the contribution guidelines.
- [x] My code follows the project's coding standards.
- [ ] I have run `pre-commit run --all-files` and fixed any issues. (Pure CSS/HTML class change, no logic modified, no formatting issues)
- [ ] I have added relevant tests for my changes. (UI layout bugfix, no functional changes, no tests needed)
- [ ] I have updated the documentation (if necessary). (UI bugfix, no docs update needed)
- [x] My changes do not introduce any new security vulnerabilities.

### Additional Notes
The fix keeps all original UI appearance unchanged (message width, centered alignment, input box style all remain exactly the same), only moves the scrollbar to the far right edge of the page and allows

scrolling anywhere in the chat area.

Alanaysis and others added 3 commits July 16, 2026 20:23
- Remove max-width constraint on chat scroll container to make it fill full width
- Keep message content and input box original centered 960px width for readability
- Scrollbar now appears at the far right of the page, works on entire area
The full-width refactor removed the parent px-6 inset the composer used
to sit inside, leaving the composer card 48px wider than the message
column. The composer root now carries its own px-6 (with the empty-state
cap bumped 720->768 so content width is unchanged in both states), and
the session-loading wrapper passes full height through so
SessionLoadingView's absolutely-positioned cancel button stays at the
chat-area corner instead of collapsing next to the spinner.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@pancacake
pancacake merged commit 11f8262 into HKUDS:dev Jul 18, 2026
pancacake added a commit that referenced this pull request Jul 18, 2026
…mmetric scrollbar gutter

Follow-up to #615/#608/#634: the isComposingRef + composition-handler
trio duplicated across five textareas (ComposerInput,
SimpleComposerInput, ChatMessages edit, BookChatPanel, PartnerComposer)
becomes one useImeComposing() hook; the citation-anchor fallback chain
+ <details> auto-open duplicated in both markdown renderers moves to
lib/markdown-anchors.ts; and the chat scrollport reserves the
scrollbar gutter on both edges so the message column centers on the
same axis as header and composer on classic-scrollbar platforms.

Co-Authored-By: Claude Opus 4.8 (1M context) <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.

2 participants