Skip to content
Snippets Groups Projects
Commit c4c6ebc5 authored by M3034's avatar M3034
Browse files

Merge branch 'gamelist-scroll' into 'development'

gamelist scroll

See merge request !30
parents 465328fa 0083383e
No related branches found
No related tags found
2 merge requests!46Development to testing,!30gamelist scroll
......@@ -212,8 +212,12 @@ div.login button:hover {
}
.gamelist {
border: 2px solid white;
max-width: 800px;
}
.gamelist-item {
background-color: #1d1d1b;
max-width: 500px;
padding: 10px;
}
......
......@@ -80,20 +80,21 @@ class GameList extends React.Component {
};
render() {
let gamelistItems = this.props.games.map(game => {
return (
<GameCard
key={game.id}
gameId={game.id}
onEditSave={this.props.onEditSave}
/>
);
});
let gamelistItems = this.props.games.map(game => (
<GameCard
key={game.id}
gameId={game.id}
onEditSave={this.props.onEditSave}
/>
));
return (
<Fragment>
<div className="gamelist">{gamelistItems}</div>
</Fragment>
<div
className="gamelist"
style={{ maxHeight: "500px", overflow: "scroll" }}
>
<div className="gamelist-item">{gamelistItems}</div>
</div>
);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment