make leaderboard margin same as other pages

This commit is contained in:
Sinclair Chen 2022-06-16 14:43:34 -07:00
parent 8219929227
commit b99f9dd193
2 changed files with 4 additions and 8 deletions

View File

@ -5,20 +5,16 @@ import Sidebar from './nav/sidebar'
import { Toaster } from 'react-hot-toast' import { Toaster } from 'react-hot-toast'
export function Page(props: { export function Page(props: {
margin?: boolean
rightSidebar?: ReactNode rightSidebar?: ReactNode
suspend?: boolean suspend?: boolean
children?: ReactNode children?: ReactNode
}) { }) {
const { margin, children, rightSidebar, suspend } = props const { children, rightSidebar, suspend } = props
return ( return (
<> <>
<div <div
className={clsx( className="mx-auto w-full pb-14 lg:grid lg:grid-cols-12 lg:gap-2 lg:pt-6 xl:max-w-7xl xl:gap-8"
'mx-auto w-full pb-14 lg:grid lg:grid-cols-12 lg:gap-2 lg:pt-6 xl:max-w-7xl xl:gap-8',
margin && 'px-4'
)}
style={suspend ? visuallyHiddenStyle : undefined} style={suspend ? visuallyHiddenStyle : undefined}
> >
<Toaster /> <Toaster />

View File

@ -36,8 +36,8 @@ export default function Leaderboards(props: {
useTracking('view leaderboards') useTracking('view leaderboards')
return ( return (
<Page margin> <Page>
<Col className="items-center gap-10 lg:flex-row"> <Col className="mx-4 items-center gap-10 lg:mx-0 lg:flex-row">
<Leaderboard <Leaderboard
title="🏅 Top bettors" title="🏅 Top bettors"
users={topTraders} users={topTraders}