File tree Expand file tree Collapse file tree 2 files changed +19
-8
lines changed Expand file tree Collapse file tree 2 files changed +19
-8
lines changed Original file line number Diff line number Diff line change @@ -271,14 +271,25 @@ export const GameplayInterface: React.FC<React.PropsWithChildren<Props>> = (
271
271
< div className = "flex-none" >
272
272
< BoardController />
273
273
</ div >
274
+ < div className = "w-full overflow-x-auto" >
275
+ < div className = "flex flex-row whitespace-nowrap py-2" >
276
+ < MovesContainer
277
+ game = { game }
278
+ termination = { game . termination }
279
+ mobile = { true }
280
+ />
281
+ </ div >
282
+ </ div >
274
283
< div className = "w-screen" > { props . children } </ div >
275
284
< StatsDisplay stats = { stats } hideSession = { true } />
276
- < ExportGame
277
- game = { game }
278
- whitePlayer = { whitePlayer ?? 'Unknown' }
279
- blackPlayer = { blackPlayer ?? 'Unknown' }
280
- event = { `Play vs. ${ maiaTitle } ` }
281
- />
285
+ < div className = "px-2" >
286
+ < ExportGame
287
+ game = { game }
288
+ whitePlayer = { whitePlayer ?? 'Unknown' }
289
+ blackPlayer = { blackPlayer ?? 'Unknown' }
290
+ event = { `Play vs. ${ maiaTitle } ` }
291
+ />
292
+ </ div >
282
293
</ div >
283
294
</ div >
284
295
</ div >
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ export const MovesContainer: React.FC<Props> = ({
60
60
)
61
61
62
62
const container = (
63
- < div className = "red-scrollbar flex h-64 flex-col overflow-y -auto overflow-x-hidden whitespace-nowrap rounded-sm bg-background-1/60 md:h-full md:w-full" >
63
+ < div className = "flex flex-row overflow-x -auto overflow-y-auto whitespace-nowrap rounded-sm bg-background-1/60 md:h-full md:w-full md:flex-col md:overflow-x-hidden " >
64
64
< Tooltip id = "check" />
65
65
{ moves . map ( ( [ white , black ] , index ) => {
66
66
const prevMoveIndex = index * 2
@@ -91,7 +91,7 @@ export const MovesContainer: React.FC<Props> = ({
91
91
92
92
return (
93
93
< div key = { index } className = "flex w-full flex-row" >
94
- < span className = "flex w-1/6 items-center justify-center bg-background-2 py-1 text-sm text-secondary" >
94
+ < span className = "flex items-center justify-center bg-background-2 px-2 py-1 text-sm text-secondary md:w-1/6 md:px-0 " >
95
95
{ index + 1 }
96
96
</ span >
97
97
< div
You can’t perform that action at this time.
0 commit comments