Skip to content
Snippets Groups Projects
Commit 0083383e authored by Joni Laukka's avatar Joni Laukka
Browse files

gamelist scroll

parent b031a9c9
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