mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
fix: text alignment
This commit is contained in:
parent
5c3194f71e
commit
190a4b1894
@ -42,7 +42,12 @@ export default function ServerCard({
|
||||
className="grid items-center gap-2 lg:w-28"
|
||||
style={{ gridTemplateColumns: "auto 1fr auto" }}
|
||||
>
|
||||
<div className="flex min-w-[17px] items-center justify-center">
|
||||
<div
|
||||
className={cn(
|
||||
"flex items-center justify-center",
|
||||
showFlag ? "min-w-[17px]" : "min-w-0",
|
||||
)}
|
||||
>
|
||||
{showFlag ? <ServerFlag country_code={country_code} /> : null}
|
||||
</div>
|
||||
<p
|
||||
@ -136,7 +141,12 @@ export default function ServerCard({
|
||||
className="grid items-center gap-2 lg:w-28"
|
||||
style={{ gridTemplateColumns: "auto 1fr auto" }}
|
||||
>
|
||||
<div className="flex items-center min-w-[17px] justify-center">
|
||||
<div
|
||||
className={cn(
|
||||
"flex items-center justify-center",
|
||||
showFlag ? "min-w-[17px]" : "min-w-0",
|
||||
)}
|
||||
>
|
||||
{showFlag ? <ServerFlag country_code={country_code} /> : null}
|
||||
</div>
|
||||
<p
|
||||
|
Loading…
Reference in New Issue
Block a user