mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
style: adjust popover font size
This commit is contained in:
parent
a16dd290a7
commit
2959850238
@ -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>
|
||||
);
|
||||
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user