diff --git a/src/app/routes/api/spotify/callback.ts b/src/app/routes/api/spotify/callback.ts index 2329424..ede93d6 100644 --- a/src/app/routes/api/spotify/callback.ts +++ b/src/app/routes/api/spotify/callback.ts @@ -112,7 +112,7 @@ export const Route = createFileRoute("/api/spotify/callback")({ }); const isSecure = import.meta.env.NODE_ENV === "production"; - const cookieOptions = `HttpOnly; Secure=${isSecure}; SameSite=Strict; Path=/; Max-Age=${tokens.expires_in}`; + const cookieOptions = `HttpOnly; ${isSecure ? 'Secure; ' : ''}SameSite=Lax; Path=/; Max-Age=${tokens.expires_in}`; response.headers.append( "Set-Cookie", @@ -120,7 +120,7 @@ export const Route = createFileRoute("/api/spotify/callback")({ ); if (tokens.refresh_token) { - const refreshCookieOptions = `HttpOnly; Secure=${isSecure}; SameSite=Strict; Path=/; Max-Age=${60 * 60 * 24 * 30}`; // 30 days + const refreshCookieOptions = `HttpOnly; ${isSecure ? 'Secure; ' : ''}SameSite=Lax; Path=/; Max-Age=${60 * 60 * 24 * 30}`; // 30 days response.headers.append( "Set-Cookie", `spotify_refresh_token=${tokens.refresh_token}; ${refreshCookieOptions}` diff --git a/src/features/bracket/components/match-form.tsx b/src/features/bracket/components/match-form.tsx index 278734c..c78af04 100644 --- a/src/features/bracket/components/match-form.tsx +++ b/src/features/bracket/components/match-form.tsx @@ -87,7 +87,7 @@ export const MatchForm: React.FC = ({ {match.home?.name} Cups { - match.home?.players.map(p => ( + match.home?.players?.map(p => ( {p.first_name} {p.last_name} )) } @@ -110,7 +110,7 @@ export const MatchForm: React.FC = ({ {match.away?.name} Cups { - match.away?.players.map(p => ( + match.away?.players?.map(p => ( {p.first_name} {p.last_name} )) } diff --git a/src/features/bracket/components/match-slot.tsx b/src/features/bracket/components/match-slot.tsx index eada4c4..ba27457 100644 --- a/src/features/bracket/components/match-slot.tsx +++ b/src/features/bracket/components/match-slot.tsx @@ -37,7 +37,7 @@ export const MatchSlot: React.FC = ({ 12 ? (team.name.length > 18 ? '10px' : '11px') : 'xs'} truncate - style={{ minWidth: 0, flex: 1 }} + style={{ minWidth: 0, flex: 1, lineHeight: "12px" }} > {team.name} diff --git a/src/features/bracket/components/seed-badge.tsx b/src/features/bracket/components/seed-badge.tsx index 96ff993..52eb316 100644 --- a/src/features/bracket/components/seed-badge.tsx +++ b/src/features/bracket/components/seed-badge.tsx @@ -18,7 +18,9 @@ export const SeedBadge: React.FC = ({ seed }) => { color: "var(--mantine-color-text)", display: "flex", alignItems: "center", - justifyContent: "center" + justifyContent: "center", + borderTopLeftRadius: "var(--mantine-radius-default)", + borderBottomLeftRadius: "var(--mantine-radius-default)", }} > {seed} diff --git a/src/features/core/components/navbar.tsx b/src/features/core/components/navbar.tsx index 80d6114..bf7bed9 100644 --- a/src/features/core/components/navbar.tsx +++ b/src/features/core/components/navbar.tsx @@ -36,9 +36,6 @@ const Navbar = () => { ))} - - Logout - }