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

Abierto Apto para principiantes
#13,483 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 8 días

@tang-ontheway ya está trabajando en esto.

Desde el 16/11/2026.

  • #13485 de @tang-ontheway — abierto

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
80/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
css, typescript
Área
frontend

Línea de trabajo

El overflow es un problema de layout en la hoja de estilos del webview de GUI gui/assets/index.css: .thread-message no tiene reglas, y los ancestros flex usan min-width: auto por defecto. Encuentra los componentes del hilo de chat y sus contenedores flex, luego añade min-width: 0 más restricciones de max-width/overflow como sugiere el issue, manteniendo los bloques de código desplazables dentro de su propio contenedor. Verifica abriendo el panel de chat en VS Code y haciendo zoom a + y ++; en cada nivel el contenido debería ajustarse o desplazarse internamente sin ensanchar la barra lateral.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
TypeScript
Estrellas
36.5k
Forks
5.6k
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de continuedev/continue

Todos los issues de continuedev/continue

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.