Skip to content

Commit 316b6ed

Browse files
committed
Center remote control group
1 parent 6bb61d5 commit 316b6ed

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

src/components/NotifyCompRemoteBar/NotifyCompRemoteBar.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,17 @@ export function NotifyCompRemoteBar({ competitionId }: NotifyCompRemoteBarProps)
6262
<nav
6363
aria-label="Remote control"
6464
className="z-20 w-full border-t border-tertiary-weak bg-panel shadow-md shadow-tertiary-dark print:hidden">
65-
<Container className="grid grid-cols-[minmax(0,1fr)_minmax(176px,1.2fr)_auto] items-center gap-2 px-2 py-2 md:grid-cols-[minmax(0,1fr)_minmax(220px,1.4fr)_minmax(0,1fr)] md:gap-4">
65+
<Container className="relative flex min-h-16 items-center justify-center px-2 py-2">
6666
<Link
6767
to={`/competitions/${competitionId}/remote`}
68-
className="min-w-0 rounded px-1 py-1 hover-transition hover:bg-gray-100 dark:hover:bg-gray-700">
68+
className="absolute left-2 top-1/2 hidden max-w-[min(32vw,20rem)] -translate-y-1/2 rounded px-1 py-1 hover-transition hover:bg-gray-100 dark:hover:bg-gray-700 sm:block">
6969
<div className="min-w-0 space-y-1">
7070
<div className="truncate text-sm font-medium text-default">{title}</div>
7171
<div className="truncate text-xs text-muted">{detail}</div>
7272
</div>
7373
</Link>
7474

75-
<div className="min-w-0 space-y-1">
75+
<div className="w-full max-w-sm space-y-1">
7676
<div className="flex items-center justify-center gap-2">
7777
<button
7878
type="button"
@@ -121,8 +121,6 @@ export function NotifyCompRemoteBar({ competitionId }: NotifyCompRemoteBarProps)
121121
<span className="text-xs tabular-nums text-muted">{remote.activityGroups.length}</span>
122122
</Link>
123123
</div>
124-
125-
<div />
126124
</Container>
127125
</nav>
128126
);

0 commit comments

Comments
 (0)