Skip to content

Commit

Permalink
fix: inline card mobile display
Browse files Browse the repository at this point in the history
  • Loading branch information
hamster1963 committed Dec 6, 2024
1 parent b2e5c80 commit 2afe8b5
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions components/ServerCardInline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import { cn, formatBytes, formatNezhaInfo } from "@/lib/utils";
import { useTranslations } from "next-intl";
import Link from "next/link";

import { Separator } from "./ui/separator";

export default function ServerCardInline({
serverInfo,
}: {
Expand All @@ -35,7 +37,7 @@ export default function ServerCardInline({
)}
>
<section
className={cn("grid items-center gap-2 w-40")}
className={cn("grid items-center gap-2 lg:w-36")}
style={{ gridTemplateColumns: "auto auto 1fr" }}
>
<span className="h-2 w-2 shrink-0 rounded-full bg-green-500 self-center"></span>
Expand All @@ -47,7 +49,7 @@ export default function ServerCardInline({
>
{showFlag ? <ServerFlag country_code={country_code} /> : null}
</div>
<div className="relative">
<div className="relative w-28">
<p
className={cn(
"break-all font-bold tracking-tight",
Expand All @@ -58,6 +60,7 @@ export default function ServerCardInline({
</p>
</div>
</section>
<Separator orientation="vertical" className="h-8 mx-0 ml-2" />
<div className="flex flex-col gap-2">
<section className={cn("grid grid-cols-9 items-center gap-3 flex-1")}>
<div
Expand Down Expand Up @@ -161,7 +164,7 @@ export default function ServerCardInline({
>
{showFlag ? <ServerFlag country_code={country_code} /> : null}
</div>
<div className="relative">
<div className="relative w-28">
<p
className={cn(
"break-all font-bold tracking-tight",
Expand Down

0 comments on commit 2afe8b5

Please sign in to comment.