Skip to content

Commit fc9a89c

Browse files
committed
games: Fix C4 full columns
1 parent 7b97fce commit fc9a89c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/ps/games/connectfour/render.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ function renderBoard(this: This, ctx: RenderCtx): ReactElement {
3333
{repeat(null, ctx.board[0].length).map((_, col) => {
3434
const column = ctx.board.map(row => row[col]);
3535
return column[0] ? (
36-
<Column data={column} />
36+
<div style={{ display: 'inline-block' }}>
37+
<Column data={column} />
38+
</div>
3739
) : (
3840
<Button value={`${this.msg} play ${col}`} style={{ background: 'none', border: 'none', padding: 0 }}>
3941
<Column data={column} />

0 commit comments

Comments
 (0)