diff --git a/src/ui/torrent_table.js b/src/ui/torrent_table.js index c51cc6d..c80d5de 100644 --- a/src/ui/torrent_table.js +++ b/src/ui/torrent_table.js @@ -5,15 +5,16 @@ import { formatBitrate } from '../bitrate'; import Ratio from './ratio'; import TorrentProgress from './torrent_progress'; +const name_style = { + maxWidth: `${window.innerWidth * 0.25}px`, + textOverflow: 'ellipsis', + overflowX: 'hidden', + whiteSpace: 'nowrap' +}; + class TorrentTable extends Component { render() { const { selection, torrents, dispatch } = this.props; - const name_style = { - maxWidth: `${window.innerWidth * 0.25}px`, - textOverflow: 'ellipsis', - overflowX: 'hidden', - whiteSpace: 'nowrap' - }; return (
- - dispatch(selectTorrent([t.id], e.target.checked ? UNION : SUBTRACT)) - } - /> - | -- { - e.preventDefault(); - dispatch(selectTorrent([t.id], EXCLUSIVE)); - }} - >{t.name} - | -{formatBitrate(t.rate_up)} | -{formatBitrate(t.rate_down)} | -