Skip to content

fix: prevent horizontal scroll in agent chat messages container#13508

Merged
DeJeune merged 1 commit intomainfrom
fix/overflow
Mar 16, 2026
Merged

fix: prevent horizontal scroll in agent chat messages container#13508
DeJeune merged 1 commit intomainfrom
fix/overflow

Conversation

@EurFelux
Copy link
Copy Markdown
Collaborator

What this PR does

Before this PR:
The ChatNavigation component at AgentChat.tsx:103 causes an unwanted horizontal scrollbar to appear in the agent chat messages container.

After this PR:
Added overflow-x-hidden to the messages container to prevent the horizontal scrollbar caused by ChatNavigation.

Why we need it and why it was done in this way

The messages container already had overflow-y-auto for vertical scrolling, but lacked overflow-x-hidden to suppress the horizontal scrollbar introduced by the ChatNavigation component. Adding this single utility class is the minimal fix.

The following tradeoffs were made:
N/A

The following alternatives were considered:
N/A

Breaking changes

None

Special notes for your reviewer

One-line CSS change — adds overflow-x-hidden to the agent chat messages container div.

Checklist

Release note

NONE

Copy link
Copy Markdown
Contributor

@cherry-ai-bot cherry-ai-bot bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the change. This is a minimal and targeted UI fix: it suppresses the horizontal overflow introduced by the agent chat navigation without changing the message rendering logic itself. I don't see any blocking issues in the current version.

Copy link
Copy Markdown
Collaborator

@DeJeune DeJeune left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@DeJeune DeJeune merged commit 65c9dcb into main Mar 16, 2026
11 checks passed
@DeJeune DeJeune deleted the fix/overflow branch March 16, 2026 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants