claude-code - 💡(How to fix) Fix [BUG] Horizontal scrollbar appears in sidebar chat panel (other extensions don't have this) [1 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#49085Fetched 2026-04-17 08:51:19
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
1
Author
Timeline (top)
labeled ×4commented ×1cross-referenced ×1

The Claude Code sidebar chat panel shows a horizontal scrollbar when messages contain long lines (e.g. long code identifiers, log output, file paths). Other VS Code AI extensions that use the same sidebar panel (Qwen Code, Kilo Code) do not exhibit this behavior — their content wraps properly without a horizontal scrollbar.

Root Cause

The Claude Code sidebar chat panel shows a horizontal scrollbar when messages contain long lines (e.g. long code identifiers, log output, file paths). Other VS Code AI extensions that use the same sidebar panel (Qwen Code, Kilo Code) do not exhibit this behavior — their content wraps properly without a horizontal scrollbar.

RAW_BUFFERClick to expand / collapse

Description

The Claude Code sidebar chat panel shows a horizontal scrollbar when messages contain long lines (e.g. long code identifiers, log output, file paths). Other VS Code AI extensions that use the same sidebar panel (Qwen Code, Kilo Code) do not exhibit this behavior — their content wraps properly without a horizontal scrollbar.

Steps to Reproduce

  1. Open Claude Code in the VS Code sidebar
  2. Have a conversation where any message contains a long unbroken line (long identifier names, log output, inline code)
  3. Observe horizontal scrollbar appearing at the bottom of the chat panel

Expected Behavior

Content wraps within the panel width. No horizontal scrollbar.

Actual Behavior

Horizontal scrollbar appears, making the panel cluttered and requiring horizontal scrolling to read content.

Environment

  • Claude Code extension: 2.1.109
  • Claude Code CLI: 2.1.108
  • OS: Linux x86_64

Additional Context

Qwen Code and Kilo Code in the same sidebar panel do not show a horizontal scrollbar. The fix is likely a simple CSS change: overflow-x: hidden or word-break: break-word on the chat container in the webview panel styles.

extent analysis

TL;DR

Apply CSS styles to the chat container in the webview panel to prevent horizontal scrolling.

Guidance

  • Investigate adding overflow-x: hidden or word-break: break-word to the chat container's CSS styles to mimic the behavior of Qwen Code and Kilo Code.
  • Verify that the CSS change does not introduce any unwanted side effects, such as truncating important content.
  • Check the webview panel's HTML structure to ensure the CSS styles are applied to the correct container.
  • Test the fix with various types of long content, including code identifiers, log output, and file paths.

Example

.chat-container {
  overflow-x: hidden;
  word-break: break-word;
}

Note: This example assumes the chat container has a class named chat-container. The actual class name or selector may vary.

Notes

The fix may require adjusting the CSS styles in the webview panel, which could have unintended consequences if not done carefully. It's essential to test the change thoroughly to ensure it resolves the issue without introducing new problems.

Recommendation

Apply workaround: Add the suggested CSS styles to the chat container, as it is a targeted fix that addresses the specific issue without requiring a version upgrade.

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