Skip to content

Commit aaabb8f

Browse files
committed
style: properly truncate favorite items with long names in sidebar
1 parent 1fb339c commit aaabb8f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src-frontend/components/app-sidebar.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,10 +317,12 @@ export function AppSidebar() {
317317
navigateTo(fav.path);
318318
router.push(`/workspace/?path=${fav.path.join("/")}`);
319319
}}
320-
className="hover:bg-accent hover:text-accent-foreground flex flex-1 items-center gap-2 rounded-md px-3 py-2 text-sm transition-colors"
320+
className="hover:bg-accent hover:text-accent-foreground flex flex-1 items-center gap-2 overflow-hidden rounded-md px-3 py-2 text-sm transition-colors"
321321
>
322322
<FolderHeart className="h-4 w-4" />
323-
<span className="truncate">{fav.name}</span>
323+
<span className="flex-1 truncate text-start">
324+
{fav.name}
325+
</span>
324326
</button>
325327
<Button
326328
variant="ghost"

0 commit comments

Comments
 (0)