Skip to content

fix(gui): prevent horizontal overflow in chat panel when zoomed - #13485

Open
tang-ontheway wants to merge 1 commit into
continuedev:mainfrom
tang-ontheway:fix/chat-panel-horizontal-overflow-zoom
Open

tang-ontheway wants to merge 1 commit into
continuedev:mainfrom
tang-ontheway:fix/chat-panel-horizontal-overflow-zoom

Conversation

@tang-ontheway

Copy link
Copy Markdown

Description

Fixes #13483.

When the VS Code window is zoomed in (Cmd/Ctrl + +), the chat webview could overflow horizontally beyond the panel/sidebar bounds because:

  • html, body, #root lacked width/overflow constraints (max-width: 100%; min-width: 0; overflow-x: hidden).
  • GridDiv in gui/src/components/Layout.tsx had overflow-x: visible.
  • Flex containers inside #root defaulted to min-width: auto, and .thread-message lacked width/wrapping bounds so long unbreakable content widened the flex chain instead of wrapping or scrolling code blocks internally.

Changes

  • Constrain html, body, #root, #root [class*="flex"], .thread-message, and .thread-message pre in gui/src/index.css.
  • Update GridDiv in gui/src/components/Layout.tsx to use min-width: 0; max-width: 100%; overflow-x: hidden;.

Checklist

  • The relevant code paths and git diff have been reviewed.

@tang-ontheway
tang-ontheway requested a review from a team as a code owner November 16, 2026 06:16
@tang-ontheway
tang-ontheway requested review from sestinj and removed request for a team November 16, 2026 06:16
@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@tang-ontheway

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

1 similar comment
@tang-ontheway

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

This branch has not been deployed

No deployments
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.

Chat panel overflows horizontally when VS Code zoom level is increased (Cmd/Ctrl + +)

1 participant