Skip to content

Commit

Permalink
style: optimized status display
Browse files Browse the repository at this point in the history
  • Loading branch information
hamster1963 committed Oct 15, 2024
1 parent 45c12e3 commit 78042da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/ServerCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ export default function ServerCard({
<PopoverTrigger asChild>
<section
className="grid items-center gap-2 lg:w-28"
style={{ gridTemplateColumns: "auto 1fr auto" }}
style={{ gridTemplateColumns: "auto auto 1fr" }}
>
<span className="h-2 w-2 shrink-0 rounded-full bg-green-500 self-center"></span>
<div
className={cn(
"flex items-center justify-center",
Expand All @@ -58,7 +59,6 @@ export default function ServerCard({
>
{name}
</p>
<span className="h-2 w-2 shrink-0 rounded-full bg-green-500 self-center"></span>
</section>
</PopoverTrigger>
<PopoverContent side="top">
Expand Down Expand Up @@ -142,8 +142,9 @@ export default function ServerCard({
<PopoverTrigger asChild>
<section
className="grid items-center gap-2 lg:w-28"
style={{ gridTemplateColumns: "auto 1fr auto" }}
style={{ gridTemplateColumns: "auto auto 1fr" }}
>
<span className="h-2 w-2 shrink-0 rounded-full bg-red-500 self-center"></span>
<div
className={cn(
"flex items-center justify-center",
Expand All @@ -160,7 +161,6 @@ export default function ServerCard({
>
{name}
</p>
<span className="h-2 w-2 shrink-0 rounded-full bg-red-500 self-center"></span>
</section>
</PopoverTrigger>
<PopoverContent className="w-fit p-2" side="top">
Expand Down

0 comments on commit 78042da

Please sign in to comment.