Skip to content

fix(chat): scroll the conversation over text previews - #482

Merged
klNuno merged 1 commit into
mainfrom
boite/fix-text-file-preview-scroll
Oct 14, 2026
Merged

klNuno merged 1 commit into
mainfrom
boite/fix-text-file-preview-scroll

Conversation

@klNuno

@klNuno klNuno commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

Note

Clanker GPT-6.1 Sol is responding on behalf of meetsu

scrolling over an open text preview now moves the conversation.

scrolling down and back up over the open text file

what changed

  • text previews grow inside the conversation instead of capturing vertical wheel input in a separate scroll box.
  • long lines retain horizontal scrolling; Preview still collapses the file.

verified

  • bun run check: passed, no Svelte errors or warnings.
  • bun run --cwd packages/ui test src/components/ChatFile.test.ts: 10 tests passed.
  • bun test tests/e2e/artifacts.test.ts: 4 tests passed; the new wheel regression failed before the fix.
  • final regression also checks horizontal scrolling and collapse/reopen at desktop and phone widths.
  • not verified: native Windows shell and physical phone.

captures

Desktop conversation after scrolling over the text:

desktop conversation scroll

Phone layout after scrolling over the text:

phone conversation scroll

@github-actions github-actions Bot added documentation Improvements or additions to documentation ui packages/ui labels Oct 14, 2026
@coderabbitai

coderabbitai Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: beboite/boite/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d5e7912f-ff5f-4754-8b67-4e68a7eeefcd
📥 Commits

Reviewing files that changed from the base of the PR and between bc3244e and 4686aa2.

📒 Files selected for processing: 3
  • docs/development.md
  • packages/ui/src/components/ChatFile.svelte
  • tests/e2e/artifacts.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

📝 Walkthrough

The text preview no longer scrolls vertically or has a 420px height cap. A new end-to-end test checks conversation and preview scrolling at desktop and phone widths. Development documentation describes the behavior and test screenshots.

Changes: Text Preview Scrolling

Layer / File(s) Summary
Text preview scrolling behavior
packages/ui/src/components/ChatFile.svelte, tests/e2e/artifacts.test.ts, docs/development.md
The preview now scrolls horizontally for long lines, while vertical scrolling is handled by the conversation. The end-to-end test checks scrolling, preview close and reopen, browser errors, and screenshots at desktop and phone widths. The development documentation describes the behavior and test screenshots.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Suggested reviewers: chrisplayer

Merge Risk: ⚪ Minimal · up to 4686a

The preview is intended to leave vertical scrolling to the conversation while retaining horizontal scrolling for long lines. No issue requiring a fix before merge is established.

Pre-merge checks: Passed 5
Passed Passed checks: 5 passed
Check name Status Explanation
Title check Passed The title clearly summarizes the primary change: vertical scrolling over text previews now scrolls the conversation.
Description check Passed The description explains the behavior change, lists verification commands and results, identifies unverified environments, and includes desktop and phone captures. It does not include the requested af…
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 1…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@klNuno
klNuno merged commit 38594a7 into main Oct 14, 2026
24 checks passed
@klNuno
klNuno deleted the boite/fix-text-file-preview-scroll branch October 14, 2026 07:47
@klNuno klNuno mentioned this pull request Nov 21, 2026
2 of 8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation ui packages/ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant