This commit is contained in:
Carl-Gerhard Lindesvärd
2024-05-28 14:09:10 +02:00
parent 687f2b7439
commit 8880f2dc27

View File

@@ -42,7 +42,7 @@ function LinkWithIcon({
return ( return (
<Link <Link
className={cn( className={cn(
'text-text flex items-center gap-2 rounded-md px-3 py-2 text-sm font-medium leading-none transition-all transition-colors hover:bg-slate-100', 'text-text flex items-center gap-2 rounded-md px-3 py-2 text-sm font-medium transition-all transition-colors hover:bg-slate-100',
active && 'bg-slate-100', active && 'bg-slate-100',
className className
)} )}
@@ -150,14 +150,7 @@ export default function LayoutMenu({ dashboards }: LayoutMenuProps) {
<LinkWithIcon <LinkWithIcon
key={item.id} key={item.id}
icon={LayoutPanelTopIcon} icon={LayoutPanelTopIcon}
label={ label={item.name}
<div className="flex items-center justify-between gap-0.5">
<span>{item.name}</span>
<span className="text-xs text-muted-foreground">
{item.project.name}
</span>
</div>
}
href={`/${item.organizationSlug}/${item.projectId}/dashboards/${item.id}`} href={`/${item.organizationSlug}/${item.projectId}/dashboards/${item.id}`}
/> />
))} ))}