Chat panel overflows horizontally when VS Code zoom level is increased (Cmd/Ctrl + +)
メンテナーはふだん 8 日以内に返信
評価
- 難易度
- 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
- I've tried finding an answer on the Continue docs site
- I'm not able to find an open issue that reports the same bug
- I've seen the troubleshooting guide on the Continue Docs
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
- Open the Continue chat panel in the VS Code sidebar/panel.
- Open any conversation (new or history — the issue is layout-related, not data-related).
- Press
Cmd + +(macOS) /Ctrl + +(Windows/Linux) to zoom the window in about 2 levels. - 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
zoomLevelhandling inout/extension.jsor the gui bundle). - The layout uses flex containers without
min-width: 0. Flex items default tomin-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-messagehas no CSS rules at all ingui/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 はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
continuedev/continue のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
continuedev/continue#13486 ·
メンテナーはふだん 8 日以内に返信
-
Docs: show tool selection for a shared remote MCP endpoint対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
continuedev/continue#13464 · コメント 1 件 ·
メンテナーはふだん 8 日以内に返信
-
Inline code becomes unreadable in VS Code high-contrast themes対応中かも @aminesayagh が 21 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
continuedev/continue#13424 ·
メンテナーはふだん 8 日以内に返信
-
create_new_file writes a JSON file on one line when the model sends its contents as a JSON value対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
continuedev/continue#13363 ·
メンテナーはふだん 8 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 66/100
continuedev/continue#13352 ·
メンテナーはふだん 8 日以内に返信
continuedev/continue の issue をすべて見る
似ている issue
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P3
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
openclaw/openclaw#200365 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
effort: small good first issue priority: medium testing
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
TMHSDigital/screencast-mcp#351 ·
メンテナーはふだん 1 日以内に返信
-
area-templates triage:bot-seen triage:needs-human
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
microsoft/aspire#22356 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Archiving an agent that is not loaded keeps its old updatedAt対応中かも @luoph が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
content triage
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信