diff --git a/screens/Tetris/TetrisScreen.js b/screens/Tetris/TetrisScreen.js index 769fa60..d3a4ef1 100644 --- a/screens/Tetris/TetrisScreen.js +++ b/screens/Tetris/TetrisScreen.js @@ -199,7 +199,7 @@ class TetrisScreen extends React.Component { { @@ -256,6 +257,8 @@ class TetrisScreen extends React.Component { /> @@ -288,6 +291,7 @@ class TetrisScreen extends React.Component { onPressIn={() => this.logic.downPressedIn(this.updateGridScore)} onPress={() => this.logic.pressedOut()} style={{marginLeft: 'auto'}} + color={this.colors.tetrisScore} /> diff --git a/screens/Tetris/components/Cell.js b/screens/Tetris/components/Cell.js index b088e02..39e1051 100644 --- a/screens/Tetris/components/Cell.js +++ b/screens/Tetris/components/Cell.js @@ -27,6 +27,7 @@ class Cell extends React.PureComponent { backgroundColor: this.props.isEmpty ? 'transparent' : this.props.color, borderColor: this.props.isEmpty ? 'transparent' : this.colors.tetrisBorder, borderStyle: 'solid', + borderRadius: 2, borderWidth: 1, aspectRatio: 1, }} diff --git a/screens/Tetris/components/Grid.js b/screens/Tetris/components/Grid.js index 24ff513..39dd5cb 100644 --- a/screens/Tetris/components/Grid.js +++ b/screens/Tetris/components/Grid.js @@ -11,7 +11,8 @@ type Props = { backgroundColor: string, height: number, width: number, - containerHeight: number|string, + containerMaxHeight: number|string, + containerMaxWidth: number|string, } class Grid extends React.Component{ @@ -33,6 +34,7 @@ class Grid extends React.Component{ return( {cells} @@ -51,11 +53,11 @@ class Grid extends React.Component{ return ( {this.getGrid()} diff --git a/screens/Tetris/components/Preview.js b/screens/Tetris/components/Preview.js index 66ff1bc..a1e7893 100644 --- a/screens/Tetris/components/Preview.js +++ b/screens/Tetris/components/Preview.js @@ -26,7 +26,8 @@ class Preview extends React.PureComponent { width={this.props.next[i][0].length} height={this.props.next[i].length} grid={this.props.next[i]} - containerHeight={50} + containerMaxHeight={50} + containerMaxWidth={50} backgroundColor={'transparent'} /> );