Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 037eb9a

Browse files
Support MM for full width leaderboar
1 parent d729f99 commit 037eb9a

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

components/FinalistTable.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import PropTypes from 'prop-types'
22
import React from 'react'
33

44
const table = (props) => {
5-
const { finalists, primaryColor, smallerDesign, largeColumns, track, fullWidth, isMini, isDev, isQa } = props
5+
const { finalists, primaryColor, smallerDesign, largeColumns, track, fullWidth, isMini, isDev, isQa, isMM } = props
66
const smallClass = smallerDesign || isMini ? ' small ' : ''
77
const sizeClass = largeColumns ? ' largerCells ' : ''
88
const trackTableClass = (track) => {
@@ -13,7 +13,7 @@ const table = (props) => {
1313
}
1414
const algorithmLeaderboard = track === 'algorithm'
1515
const f2fLeaderboard = fullWidth
16-
const isDevOrQa = isDev || isQa
16+
const isDevOrQa = isDev || isQa || isMM
1717
return (
1818
<div className={'container' + smallClass + sizeClass + `${trackTableClass(track)}`}>
1919
<div className='header'>
@@ -464,6 +464,10 @@ const table = (props) => {
464464
width: 125px;
465465
}
466466
467+
.f2fTable .tests-passed {
468+
width: 250px;
469+
}
470+
467471
.row .tests-passed {
468472
display: flex;
469473
align-items: center;
@@ -594,6 +598,10 @@ const table = (props) => {
594598
margin-left: 28.5px;
595599
}
596600
601+
.animate .non-score-lvl-pt {
602+
margin-left: 0;
603+
}
604+
597605
.small .competitor {
598606
width: 250px;
599607
padding-left: 0;

pages/f2f-leaderboard.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ class F2FLeaderboard extends React.Component {
109109
isDev: data.fields.isDevTrack,
110110
isF2f: data.fields.isF2fTrack,
111111
isQa: data.fields.isQaTrack,
112+
isMM: data.fields.isMmTrack,
112113
showFinalScore: data.fields.showFinalScore
113114
}
114115
}

0 commit comments

Comments
 (0)