Skip to content

Conversation

@ryanwyler
Copy link
Contributor

@ryanwyler ryanwyler commented Jan 6, 2026

Summary

If the title has exactly 37 characters, when Modified Files (or other) in the sidebar that expands enough to make the scrollbar visible, it will result in a "mouse drag" highlighting of the characters.

This fixes an edge case bug where the sidebar session title causes a visual glitch when the scrollbar activates.

Problem

When the session title is exactly the right character length to fill the sidebar width, it triggers the scrollbar to appear at a precise moment during rendering. This causes mouse drag events to incorrectly propagate to list items below, resulting in unexpected highlighting/selection behavior.

Solution

Added paddingRight={1} to the session title box to ensure there's always room reserved for the scrollbar, preventing the timing edge case.

Testing

Tested with session titles of various lengths including the exact edge case length that triggered the bug.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 6, 2026

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

@ryanwyler
Copy link
Contributor Author

image image

@rekram1-node
Copy link
Collaborator

Hmm i cant replicate the issue

@rekram1-node rekram1-node merged commit f0e559c into anomalyco:dev Jan 6, 2026
5 of 6 checks passed
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