Repository navigation
fix(file-explorer): stop italic ignored filenames clipping ".md" to ".ma" - #10047
Merged
Merged
Conversation
….ma" Gitignored files render their name in an italic, shrink-to-fit span with Tailwind `truncate` (overflow:hidden). Italic glyphs overhang their advance width, and overflow:hidden clips at the content-box edge, shaving the final letter — so ".md" displayed as ".ma" (and any italic name lost its last char), regardless of whether the name was actually truncated. Add `pr-0.5` on the italic case to reserve room for the slant overhang. Co-authored-by: Orca <[email protected]>
Contributor
📝 WalkthroughWalkthroughUpdated ignored file and directory names in 🚥 Pre-merge checks | ✅ 2 | ❌ 3❌ Failed checks (3 warnings)
✅ Passed checks (2 passed)
✨ Finishing Touches📝 Generate docstrings
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This was referenced Jul 27, 2026
enrick-dev
pushed a commit
to enrick-dev/orca
that referenced
this pull request
Oct 15, 2026
….ma" (stablyai#10047) Co-authored-by: Orca <[email protected]>
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.
Problem
In the right-sidebar file explorer, gitignored files whose names end in
.mdrendered as.ma— the trailingdwas clipped off.Root cause
Gitignored filenames render in an italic, shrink-to-fit
<span>styled with the Tailwindtruncateutility (overflow: hidden; text-overflow: ellipsis; white-space: nowrap).Italic glyphs lean right and overhang their advance width. Because the span shrinks to its content and
overflow: hiddenclips at the content-box edge, the trailing glyph's slant overhang gets shaved — turning.mdinto.ma. This happens for any italic (ignored) name, not just ones long enough to truncate, which is why even short names likeREADME.mdand04-roadmap.mdwere affected.Only ignored files are italic (
isIgnored && 'italic'), so only they showed the bug. Non-italic rows have no overhang and render fine.Fix
src/renderer/src/components/right-sidebar/FileExplorerRow.tsx— addpr-0.5to the italic case so there's room for the slant overhang inside the clipping box.Evidence (before / after)
Minimal HTML repro of the exact CSS (
truncate+italic, with and without the padding), rendered in WebKit at the sidebar's width. Top group is BEFORE (.mdclipped to.ma); bottom group is AFTER withpr-0.5(full.mdvisible):