стабильный размер списка торрентов на главной

This commit is contained in:
Alexey Kasyanchuk
2017-02-03 13:08:43 +03:00
parent 80e9583395
commit 0e1912665a
2 changed files with 32 additions and 1 deletions

View File

@ -28,3 +28,34 @@
} }
} }
.recent-torrents {
width: 60%
}
@media only screen and (max-width: 1250px)
{
.recent-torrents {
width: 68%
}
}
@media only screen and (max-width: 1100px)
{
.recent-torrents {
width: 75%
}
}
@media only screen and (max-width: 800px)
{
.recent-torrents {
width: 90%
}
}
@media only screen and (max-width: 650px)
{
.recent-torrents {
width: 100%
}
}

View File

@ -137,7 +137,7 @@ export default class RecentTorrents extends Component {
return null; return null;
return ( return (
<List className='animated'> <List className='animated recent-torrents'>
<Subheader className='recent-title' inset={true}> <Subheader className='recent-title' inset={true}>
<FlatButton style={{marginRight: '8px'}} label={!this.state.pause ? 'running' : 'stoped'} secondary={this.state.pause} primary={!this.state.pause} onClick={() =>{ <FlatButton style={{marginRight: '8px'}} label={!this.state.pause ? 'running' : 'stoped'} secondary={this.state.pause} primary={!this.state.pause} onClick={() =>{
this.pauseAndContinue() this.pauseAndContinue()