forked from farhoodlabs/paperclip
fix: align file icons with folder icons in export file tree
Change file row outer gap from gap-2 (8px) to gap-1 (4px) to match the directory row grid gap-x-1, so file and folder icons line up vertically. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -510,7 +510,7 @@ function ExportFileTree({
|
|||||||
<div
|
<div
|
||||||
key={node.path}
|
key={node.path}
|
||||||
className={cn(
|
className={cn(
|
||||||
"flex w-full items-center gap-2 pr-3 text-left text-sm text-muted-foreground hover:bg-accent/30 hover:text-foreground cursor-pointer",
|
"flex w-full items-center gap-1 pr-3 text-left text-sm text-muted-foreground hover:bg-accent/30 hover:text-foreground cursor-pointer",
|
||||||
TREE_ROW_HEIGHT_CLASS,
|
TREE_ROW_HEIGHT_CLASS,
|
||||||
node.path === selectedFile && "text-foreground bg-accent/20",
|
node.path === selectedFile && "text-foreground bg-accent/20",
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user