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

オープン 初心者向け
#13,483 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 8 日以内に返信

@tang-ontheway がすでに取り組んでいます。

2026年11月16日 から。

  • #13485 @tang-ontheway による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
80/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
css, typescript
領域
frontend

調査の方向性

オーバーフローは GUI webview のスタイルシート gui/assets/index.css におけるレイアウト問題です:.thread-message にはルールがなく、flex の祖先はデフォルトで min-width: auto になります。チャットスレッドのコンポーネントとその flex コンテナを見つけ、issue が示すように min-width: 0 と max-width/overflow の制約を追加し、コードブロックは自身のコンテナ内でスクロール可能なままにしてください。VS Code でチャットパネルを開き、+ と ++ にズームして確認してください。各レベルでコンテンツはサイドバーを広げることなく折り返すか内部でスクロールするはずです。

索引モデルが issue の本文から書いたものです。

説明

Before submitting your bug report
Relevant environment info
- OS:
- Continue version:
- IDE version:
- Model:
- config:
  

  
  OR link to agent in Continue hub:
Description

Summary

When the VS Code window is zoomed in (Cmd/Ctrl + +), the Continue chat webview overflows horizontally and the content breaks out of the panel / sidebar container. At 100% zoom everything renders correctly. This happens at roughly + and ++ zoom levels and gets worse at higher levels.

Environment

  • Continue version: 2.0.0 (continue.continue-2.0.0-darwin-x64)
  • VS Code: latest
  • OS: macOS (also reproducible on Windows/Linux, zoom behavior is the same)
  • Surface: VS Code Webview sidebar/panel chat

Steps to reproduce

  1. Open the Continue chat panel in the VS Code sidebar/panel.
  2. Open any conversation (new or history — the issue is layout-related, not data-related).
  3. Press Cmd + + (macOS) / Ctrl + + (Windows/Linux) to zoom the window in about 2 levels.
  4. Observe the chat content overflowing horizontally outside the panel bounds.

Expected behavior

The chat content should stay within the panel width at any zoom level (wrap long lines, scroll code blocks horizontally inside their container, never widen the surrounding layout).

Actual behavior

At zoom levels ≥ ~+, layout containers get pushed wider than the viewport and content overflows horizontally. Zooming back to 100% restores normal rendering.

Root cause (from inspecting the bundled GUI)

  • The extension does not appear to handle VS Code's zoom / device pixel scaling at all (no zoomLevel handling in out/extension.js or the gui bundle).
  • The layout uses flex containers without min-width: 0. Flex items default to min-width: auto, so long/unbreakable content (long lines, code, base64, terminal output) cannot shrink and widens the whole flex chain — which is especially visible under zoom.
  • The message body container .thread-message has no CSS rules at all in gui/assets/index.css, so its width/overflow behavior is unconstrained.

Suggested fix

Add constraints so flex containers can shrink and long content can wrap, e.g.:

html, body, #root, #root > * {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}
#root [class*="flex"] { min-width: 0; }
#root [class*="overflow"] { min-width: 0; max-width: 100%; }
.thread-message {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.thread-message pre { max-width: 100%; overflow-x: auto; display: block; }

The key part is min-width: 0 on flex items — without it, max-width: 100% alone does not prevent overflow under zoom.

Verification

Applying the CSS above (only min-width: 0 + wrap/overflow constraints, no layout redesign) fully fixes the overflow at all zoom levels, confirming it is a CSS/layout-adaptation issue rather than a data or logic problem.

To reproduce

No response

Log output

主要言語
TypeScript
スター
36.5k
フォーク
5.6k
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

continuedev/continue のほかの issue

continuedev/continue の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。