style: constrain description width in AppPage; add description to sidebar items

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-28 10:01:33 +01:00
parent 28747a6c8f
commit bc9e30c918
2 changed files with 2 additions and 1 deletions

View File

@@ -19,7 +19,7 @@ export function AppPage({ title, description, icon: Icon, children, className }:
<h1 className="text-2xl font-bold">{title}</h1> <h1 className="text-2xl font-bold">{title}</h1>
</div> </div>
{description && ( {description && (
<p className="text-sm text-muted-foreground"> <p className="text-sm text-muted-foreground max-w-2xl">
{description} {description}
</p> </p>
)} )}

View File

@@ -97,6 +97,7 @@ export function AppSidebar() {
{!isCollapsed && ( {!isCollapsed && (
<div className="min-w-0"> <div className="min-w-0">
<span className="whitespace-nowrap block">{tool.navTitle}</span> <span className="whitespace-nowrap block">{tool.navTitle}</span>
<span className="text-[10px] text-muted-foreground leading-tight block line-clamp-2">{tool.description}</span>
</div> </div>
)} )}
</div> </div>