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'
export function Page(props: {
margin?: boolean
rightSidebar?: ReactNode
suspend?: boolean
children?: ReactNode
}) {
const { margin, children, rightSidebar, suspend } = props
const { children, rightSidebar, suspend } = props
return (
<>
<div
className={clsx(
'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'
)}
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"
style={suspend ? visuallyHiddenStyle : undefined}
>
<Toaster />

View File

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