claude-code - 💡(How to fix) Fix [BUG] Chat UI content cut off on both sides unless window is at minimum size [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#51823Fetched 2026-04-23 07:44:02
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Description: The chat message content is clipped on both the left and right edges of the viewport. Messages get truncated mid-word (e.g., "ort a problem" instead of "report a problem", "is at" instead of "this is at") unless I shrink the window down to its minimum size. This has persisted across the last 5 updates

<img width="936" height="945" alt="Image" src="https://github.com/user-attachments/assets/58fa5e98-7597-4b33-9d44-97ccdc2b2834" />

Claude Code version: 2.1.71 App: Claude Code desktop (macOS) OS: macOS 14.7.4 (23H420) Machine: MacBook Pro (MacBookPro15,1), 6-Core Intel Core i7 @ 2.6 GHz, 16 GB RAM Display: Built-In Retina LCD, 2880 x 1800 GPU: Intel UHD Graphics 630 / Radeon Pro 560X Node: v24.14.1

What Should Happen?

Expected: Chat content should fit within the visible window and wrap/scroll properly at any window size.

Actual: Content extends beyond the left and right viewport edges and gets visually clipped. Only fits when the window is at its minimum width.

Error Messages/Logs

Steps to Reproduce

Steps to reproduce:

Open Claude Code desktop app Resize window to any size larger than minimum Open a chat session Observe message content is cut off on both sides Screenshot: [attach the image you just shared]

Claude Model

Opus

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

2.1.71

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

The issue can likely be resolved by adjusting the CSS styling of the chat message container to properly handle text wrapping and overflow.

Guidance

  • Verify that the chat message container has a fixed width or a maximum width set, which could be causing the content to overflow.
  • Check the CSS styles applied to the chat message container for any overflow or text-overflow properties that might be set to "hidden" or "clip", and adjust them to allow proper text wrapping.
  • Inspect the HTML structure of the chat message container to ensure it is properly nested within a container that allows for horizontal scrolling or text wrapping.
  • Test the application with different window sizes and chat message lengths to identify any patterns or edge cases that might be contributing to the issue.

Example

No specific code example can be provided without more information about the application's codebase, but a possible solution might involve adding CSS styles like overflow-wrap: break-word; or word-break: break-all; to the chat message container.

Notes

The issue seems to be related to a regression in the application's layout handling, and resolving it may require adjustments to the application's CSS styles or HTML structure. Without more information about the application's codebase, it is difficult to provide a more specific solution.

Recommendation

Apply a workaround by adjusting the CSS styles of the chat message container to properly handle text wrapping and overflow, as this is likely to be a quicker solution than waiting for a potential fix in a future version of the application.

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 [BUG] Chat UI content cut off on both sides unless window is at minimum size [1 comments, 2 participants]