claude-code - 💡(How to fix) Fix Horizontal scrollbar always rendered in extension chat panel even when content fits (VSCode extension) [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#54830Fetched 2026-04-30 06:34:45
View on GitHub
Comments
2
Participants
2
Timeline
6
Reactions
0
Timeline (top)
labeled ×4commented ×2

The Claude Code VSCode extension always shows a horizontal scrollbar at the bottom of the chat/sidebar panel, regardless of content. The scrollbar has nothing to scroll to — text wraps correctly within the visible width — so it appears to be a CSS layout bug rather than actual overflow.

Root Cause

The Claude Code VSCode extension always shows a horizontal scrollbar at the bottom of the chat/sidebar panel, regardless of content. The scrollbar has nothing to scroll to — text wraps correctly within the visible width — so it appears to be a CSS layout bug rather than actual overflow.

RAW_BUFFERClick to expand / collapse

Description

The Claude Code VSCode extension always shows a horizontal scrollbar at the bottom of the chat/sidebar panel, regardless of content. The scrollbar has nothing to scroll to — text wraps correctly within the visible width — so it appears to be a CSS layout bug rather than actual overflow.

Repro

  1. Open the Claude Code VSCode extension on Windows
  2. Observe the panel in any state: idle, during a response, in a permission prompt, etc.
  3. The horizontal scrollbar is present at the bottom of the panel in every state.

(Screenshot can be attached manually — the scrollbar is visible during normal chat output as well as during permission prompts.)

Expected

No horizontal scrollbar when content fits the panel width via wrapping.

Comparison

The OpenAI Codex VSCode extension does not show a persistent horizontal scrollbar in its chat panel under the same VSCode version, so it isn't a webview platform limitation.

Environment

  • VSCode on Windows 11 Enterprise (10.0.26100)
  • Claude Code VSCode extension (current)

Suggested fix area

Likely a child element in the panel webview has a fixed min-width or white-space: pre that exceeds the panel's content box, forcing the parent to render a scrollbar. Candidates: overflow-x: hidden on the panel root, or min-width: 0 on flex/grid children that contain wrapped text.

extent analysis

TL;DR

Apply CSS fixes to the panel webview, such as setting overflow-x: hidden on the panel root or min-width: 0 on flex/grid children, to remove the unnecessary horizontal scrollbar.

Guidance

  • Investigate the CSS styles applied to the child elements within the panel webview to identify any min-width or white-space: pre properties that could be causing the scrollbar to appear.
  • Try setting overflow-x: hidden on the panel root element to prevent the scrollbar from being displayed.
  • Check for any flex or grid children that contain wrapped text and set min-width: 0 to allow them to shrink to fit the available space.
  • Compare the CSS styles used in the OpenAI Codex VSCode extension to identify potential differences that could be contributing to the issue.

Example

No code snippet is provided as the issue is related to CSS styles and the exact code is not available.

Notes

The suggested fix area provided in the issue is a good starting point, and investigating the CSS styles and applying the suggested fixes should help resolve the issue. However, without access to the actual code, it's difficult to provide a more specific solution.

Recommendation

Apply workaround: Apply the suggested CSS fixes to the panel webview to remove the unnecessary horizontal scrollbar, as the root cause is likely related to the CSS styles used in the extension.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Horizontal scrollbar always rendered in extension chat panel even when content fits (VSCode extension) [2 comments, 2 participants]