mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
Merge branch 'main' into cloudflare
This commit is contained in:
commit
f1cb2ac79d
@ -38,8 +38,18 @@ export default function ServerCard({
|
|||||||
>
|
>
|
||||||
<Popover>
|
<Popover>
|
||||||
<PopoverTrigger asChild>
|
<PopoverTrigger asChild>
|
||||||
<section className={"flex items-center justify-start gap-2 lg:w-28"}>
|
<section
|
||||||
{showFlag ? <ServerFlag country_code={country_code} /> : null}
|
className="grid items-center gap-2 lg:w-28"
|
||||||
|
style={{ gridTemplateColumns: "auto 1fr auto" }}
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
className={cn(
|
||||||
|
"flex items-center justify-center",
|
||||||
|
showFlag ? "min-w-[17px]" : "min-w-0",
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
{showFlag ? <ServerFlag country_code={country_code} /> : null}
|
||||||
|
</div>
|
||||||
<p
|
<p
|
||||||
className={cn(
|
className={cn(
|
||||||
"break-all font-bold tracking-tight",
|
"break-all font-bold tracking-tight",
|
||||||
@ -48,7 +58,7 @@ export default function ServerCard({
|
|||||||
>
|
>
|
||||||
{name}
|
{name}
|
||||||
</p>
|
</p>
|
||||||
<span className="h-2 w-2 shrink-0 rounded-full bg-green-500"></span>
|
<span className="h-2 w-2 shrink-0 rounded-full bg-green-500 self-center"></span>
|
||||||
</section>
|
</section>
|
||||||
</PopoverTrigger>
|
</PopoverTrigger>
|
||||||
<PopoverContent side="top">
|
<PopoverContent side="top">
|
||||||
@ -127,8 +137,18 @@ export default function ServerCard({
|
|||||||
>
|
>
|
||||||
<Popover>
|
<Popover>
|
||||||
<PopoverTrigger asChild>
|
<PopoverTrigger asChild>
|
||||||
<section className={"flex items-center justify-start gap-2 lg:w-28"}>
|
<section
|
||||||
{showFlag ? <ServerFlag country_code={country_code} /> : null}
|
className="grid items-center gap-2 lg:w-28"
|
||||||
|
style={{ gridTemplateColumns: "auto 1fr auto" }}
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
className={cn(
|
||||||
|
"flex items-center justify-center",
|
||||||
|
showFlag ? "min-w-[17px]" : "min-w-0",
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
{showFlag ? <ServerFlag country_code={country_code} /> : null}
|
||||||
|
</div>
|
||||||
<p
|
<p
|
||||||
className={cn(
|
className={cn(
|
||||||
"break-all font-bold tracking-tight",
|
"break-all font-bold tracking-tight",
|
||||||
@ -137,7 +157,7 @@ export default function ServerCard({
|
|||||||
>
|
>
|
||||||
{name}
|
{name}
|
||||||
</p>
|
</p>
|
||||||
<span className="h-2 w-2 shrink-0 rounded-full bg-red-500"></span>
|
<span className="h-2 w-2 shrink-0 rounded-full bg-red-500 self-center"></span>
|
||||||
</section>
|
</section>
|
||||||
</PopoverTrigger>
|
</PopoverTrigger>
|
||||||
<PopoverContent className="w-fit p-2" side="top">
|
<PopoverContent className="w-fit p-2" side="top">
|
||||||
|
Loading…
Reference in New Issue
Block a user