fix(ui): show horizontal scrollbar on code blocks in markdown#454
Open
haliliceylan wants to merge 5 commits intoKilo-Org:devfrom
Open
fix(ui): show horizontal scrollbar on code blocks in markdown#454haliliceylan wants to merge 5 commits intoKilo-Org:devfrom
haliliceylan wants to merge 5 commits intoKilo-Org:devfrom
Conversation
|
@haliliceylan is attempting to deploy a commit to the Kilo Code Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
catrielmuller
approved these changes
Feb 19, 2026
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge This PR improves scrollbar styling across the UI:
Files Reviewed (3 files)
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
fixes #406
closes #406
Code blocks displayed in chat sessions had no visible horizontal scrollbars, making it impossible to scroll horizontally to view long lines of code except by highlighting and dragging.
Implementation
Modified
packages/ui/src/components/markdown.cssto show horizontal scrollbars onpreelements:scrollbar-width: nonetoscrollbar-width: thinfor Firefoxscrollbar-colorfor Firefox styling using design system variablesheight: 8px) while hiding vertical scrollbar (width: 0)--border-weak-base,--border-strong-baseon hover)Screenshots
How to Test
Trigger a response that includes a code block with long lines
Get in Touch
https://discord.com/channels/1349288496988160052/1391109167275577464/1473821631267995872