Small game UI improvements

This commit is contained in:
Arnaud Vergnet 2020-07-19 10:46:30 +02:00
parent 1780ab886e
commit de41a57930
2 changed files with 2 additions and 0 deletions

View file

@ -46,6 +46,7 @@ class GridComponent extends React.Component<Props> {
return ( return (
<View style={{ <View style={{
aspectRatio: this.props.width / this.props.height, aspectRatio: this.props.width / this.props.height,
borderRadius: 4,
...this.props.style ...this.props.style
}}> }}>
{this.getGrid()} {this.getGrid()}

View file

@ -30,6 +30,7 @@ class Preview extends React.PureComponent<Props> {
style={{ style={{
marginRight: 5, marginRight: 5,
marginLeft: 5, marginLeft: 5,
marginBottom: 5,
}} }}
key={index.toString()} key={index.toString()}
/>; />;