From 099003188dc3fd749e6728577f6287d737b3cd3a Mon Sep 17 00:00:00 2001 From: Neil <4138956+nwparker@users.noreply.github.com> Date: Wed, 22 Jul 2026 19:47:02 -0700 Subject: [PATCH] fix(file-explorer): stop italic ignored filenames clipping ".md" to ".ma" (#10047) Co-authored-by: Orca --- .../src/components/right-sidebar/FileExplorerRow.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/renderer/src/components/right-sidebar/FileExplorerRow.tsx b/src/renderer/src/components/right-sidebar/FileExplorerRow.tsx index fb91f5446..2e1c3e24f 100644 --- a/src/renderer/src/components/right-sidebar/FileExplorerRow.tsx +++ b/src/renderer/src/components/right-sidebar/FileExplorerRow.tsx @@ -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