Fixing GavCoin dApp overflow issues (#2953) (#3030)

This commit is contained in:
Nicolas Gotchac 2016-10-31 23:25:25 +01:00 committed by Jaco Greeff
parent 55cdc7c265
commit d29de96a59
4 changed files with 17 additions and 8 deletions

View File

@ -18,4 +18,5 @@
.body { .body {
background-size: cover; background-size: cover;
background-repeat: no-repeat; background-repeat: no-repeat;
width: 100%;
} }

View File

@ -17,6 +17,11 @@
.events { .events {
padding: 4em 2em; padding: 4em 2em;
text-align: center; text-align: center;
display: flex;
}
.container {
overflow: auto;
} }
.list { .list {
@ -30,6 +35,7 @@
vertical-align: top; vertical-align: top;
padding: 0.25em 1em; padding: 0.25em 1em;
max-height: 1.5em; max-height: 1.5em;
white-space: nowrap;
} }
.event { .event {

View File

@ -52,12 +52,14 @@ export default class Events extends Component {
render () { render () {
return ( return (
<div className={ styles.events }> <div className={ styles.events }>
<div className={ styles.container }>
<table className={ styles.list }> <table className={ styles.list }>
<tbody> <tbody>
{ this.renderEvents() } { this.renderEvents() }
</tbody> </tbody>
</table> </table>
</div> </div>
</div>
); );
} }

View File

@ -20,6 +20,7 @@
padding: 4em 0 2em 0; padding: 4em 0 2em 0;
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
justify-content: space-around;
} }
.title { .title {
@ -30,9 +31,8 @@
} }
.item { .item {
flex: 0 1 30%; flex: 1;
width: 30%; margin: 1.5rem 1rem;
margin: 0 1.5%;
text-align: center; text-align: center;
} }