Skip to content

Commit 4c6d2c6

Browse files
committed
Resolves #396
1 parent ad919f4 commit 4c6d2c6

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/loud-bars-report.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"ai-elements": patch
3+
---
4+
5+
Fix FileTree icons for long file names

packages/elements/src/file-tree.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ export const FileTreeFile = ({
271271
{children ?? (
272272
<>
273273
{/* Spacer for alignment */}
274-
<span className="size-4" />
274+
<span className="size-4 shrink-0" />
275275
<FileTreeIcon>
276276
{icon ?? <FileIcon className="size-4 text-muted-foreground" />}
277277
</FileTreeIcon>

0 commit comments

Comments
 (0)