Feat: responsive layout
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
b690ace6b5
commit
b831ab4079
1 changed files with 11 additions and 2 deletions
|
@ -43,9 +43,18 @@ export default function SpeedFlowchartPage() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Grid container spacing={2}>
|
<Grid
|
||||||
|
container
|
||||||
|
spacing={2}
|
||||||
|
direction={{ xs: 'column-reverse', md: 'row' }}
|
||||||
|
>
|
||||||
{flowchartResult?.rounds.map((round, roundKey) => (
|
{flowchartResult?.rounds.map((round, roundKey) => (
|
||||||
<Grid key={`flowchart-column-${roundKey}`} item xs={12 / 5}>
|
<Grid
|
||||||
|
key={`flowchart-column-${roundKey}`}
|
||||||
|
item
|
||||||
|
xs={12}
|
||||||
|
md={12 / flowchartResult.rounds.length}
|
||||||
|
>
|
||||||
<h3>{round.roundName}</h3>
|
<h3>{round.roundName}</h3>
|
||||||
<Grid container spacing={2}>
|
<Grid container spacing={2}>
|
||||||
{round.pairs.map((pair, pairKey) => (
|
{round.pairs.map((pair, pairKey) => (
|
||||||
|
|
Loading…
Reference in a new issue