Claude Code extension webview renders poorly in code-server (browser-based VS Code)
Status Fixed / completed
Reported on v2.1.114
Maintainer reply None cached
Activity 3 comments · opened Apr 22, 2026 · closed Apr 22, 2026
Environment
- code-server: 4.116.0 (Code 1.116.0)
- Claude Code extension: 2.1.114
- Comparison: VS Code desktop (native) on the same machine renders the extension perfectly
Problem
The Claude Code extension's webview panel renders poorly when accessed through code-server (browser-based VS Code). Specific issues:
- Oversized icons: The magnifying glass and other icons render at a disproportionately large size, dominating the panel
- Tiny buttons: Action buttons are very small and difficult to click, especially on touch devices
- Cramped layout: The overall layout feels squeezed, with poor use of available space
- Mobile browsers: The experience is especially bad on mobile — touch targets are far too small to reliably tap
The same extension version renders correctly in the native VS Code desktop app, so the issue appears specific to the code-server/browser environment.
Likely Cause
The webview CSS relies on VS Code CSS variables (e.g., --vscode-*) which code-server may not fully populate or may map to different values. Additionally, there doesn't appear to be any responsive CSS handling for smaller viewports or non-standard DPI scaling that browsers introduce.
Suggestion
- Test the extension webview in code-server (and potentially other browser-based VS Code environments like vscode.dev or GitHub Codespaces)
- Add responsive CSS with appropriate media queries for smaller viewports
- Ensure touch targets meet minimum sizing (48x48px per WCAG guidelines) for mobile/tablet use
- Avoid hard assumptions about icon/font sizing that may not hold outside the native Electron shell
3 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
Closing as duplicate — see #38911, #41250, #17463.
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.