fix(file-explorer): stop italic ignored filenames clipping ".md" to ".ma" (#10047)

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Neil
2026-07-22 19:47:02 -07:00
committed by GitHub
co-authored by Orca
parent 4fce2de494
commit 099003188d
@@ -638,7 +638,10 @@ export function FileExplorerRow({
className={cn(
'truncate',
isSelected && !nodeStatus && !isIgnored && 'text-accent-foreground',
isIgnored && 'italic'
// Why: italic glyphs overhang their advance width; truncate's
// overflow:hidden clips it, shaving the last char (".md" → ".ma").
// pr-0.5 reserves room for the slant so the final letter survives.
isIgnored && 'italic pr-0.5'
)}
style={
nodeStatus