style: adjust popover font size

This commit is contained in:
hamster1963 2024-07-29 00:13:12 +08:00
parent a16dd290a7
commit 2959850238
2 changed files with 8 additions and 3 deletions

View File

@ -73,7 +73,9 @@ export default function ServerCard({
<p className="text-sm font-bold tracking-tight">{name}</p>
</section>
</PopoverTrigger>
<PopoverContent side="top">Offline</PopoverContent>
<PopoverContent className="w-fit p-2" side="top">
<p className="text-sm text-muted-foreground">Offline</p>
</PopoverContent>
</Popover>
</Card>
);

View File

@ -15,8 +15,11 @@ export function ServerCardPopoverCard({
return (
<div className={cn("mb-[6px] flex w-full flex-col", className)}>
<div className="text-sm font-semibold">{title}</div>
{children ? children : <div className="break-all text-sm">{content}</div>}
<div className="h-[0.5px] w-full bg-accent"></div>
{children ? (
children
) : (
<div className="break-all text-xs font-medium">{content}</div>
)}
</div>
);
}