fix: a lot of minor improvements for dashboard

This commit is contained in:
Carl-Gerhard Lindesvärd
2025-11-07 12:28:54 +01:00
parent 5b1c582023
commit c762bd7c95
19 changed files with 591 additions and 388 deletions

View File

@@ -5,6 +5,7 @@ interface PageHeaderProps {
description?: string;
className?: string;
children?: React.ReactNode;
actions?: React.ReactNode;
}
export function PageHeader({
@@ -12,14 +13,18 @@ export function PageHeader({
description,
className,
children,
actions,
}: PageHeaderProps) {
return (
<div className={cn('space-y-1', className)}>
<h1 className="text-2xl font-semibold">{title}</h1>
{description && (
<p className="text-muted-foreground font-medium">{description}</p>
)}
{children}
<div className={cn('col md:row gap-2', className)}>
<div className={'space-y-1 flex-1'}>
<h1 className="text-2xl font-semibold">{title}</h1>
{description && (
<p className="text-muted-foreground font-medium">{description}</p>
)}
{children}
</div>
<div className="row gap-2">{actions}</div>
</div>
);
}