небольшие исправления
This commit is contained in:
@ -14,16 +14,16 @@ return (
|
||||
onClick={() => window.router('/torrent/' + torrent.hash)}
|
||||
primaryText={<span className='break-word'>{torrent.name}</span>}
|
||||
secondaryText={
|
||||
<div className='column'>
|
||||
<div className='column' style={{height: 'auto', whiteSpace: 'normal'}}>
|
||||
<div>
|
||||
{
|
||||
formatBytes(torrent.size, 1)
|
||||
formatBytes(torrent.size, 1) + ' (' + torrent.files + ' files)'
|
||||
}
|
||||
</div>
|
||||
{
|
||||
torrent.path && torrent.path.length > 0
|
||||
?
|
||||
<div>{torrent.path}</div>
|
||||
<div className='break-word fs0-75' style={{paddingTop: '0.3em'}}>{torrent.path}</div>
|
||||
:
|
||||
null
|
||||
}
|
||||
|
@ -87,6 +87,14 @@ const TorrentInformation = (props) => {
|
||||
rightIcon={<ActionInfo />}
|
||||
primaryText="Torrent contains files"
|
||||
secondaryText={torrent.files}
|
||||
onClick={() => {
|
||||
if(!props.parent)
|
||||
return
|
||||
|
||||
props.parent.setState({
|
||||
value: 'files'
|
||||
})
|
||||
}}
|
||||
/>
|
||||
<ListItem
|
||||
// leftAvatar={<Avatar icon={<EditorInsertChart />} backgroundColor={yellow600} />}
|
||||
@ -144,7 +152,7 @@ export default class TorrentPage extends Component {
|
||||
<div className='column w100p'>
|
||||
<div className='row w100p torrent-information-row'>
|
||||
<div style={{flexBasis: '60%'}}>
|
||||
<TorrentInformation torrent={this.torrent} />
|
||||
<TorrentInformation torrent={this.torrent} parent={this} />
|
||||
</div>
|
||||
<div style={{flexBasis: '40%'}} className='column center w100p'>
|
||||
<img src={NoImage} className='pad0-75' style={{height: '200px'}} />
|
||||
|
Reference in New Issue
Block a user