commit
cc625edea6
|
@ -20,6 +20,7 @@ class ConnectionOverlay extends Component {
|
|||
super();
|
||||
this.connect = this.connect.bind(this);
|
||||
this.componentDidMount = this.componentDidMount.bind(this);
|
||||
this.state = {}
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
|
@ -97,7 +98,6 @@ class ConnectionOverlay extends Component {
|
|||
type="checkbox"
|
||||
checked={autoconnect}
|
||||
onChange={e => this.setState({ autoconnect: !autoconnect })}
|
||||
check
|
||||
/> Autoconnect to this server
|
||||
</Label>
|
||||
</FormGroup>
|
||||
|
|
|
@ -46,7 +46,7 @@ function render(props) {
|
|||
value={qs.s}
|
||||
onChange={e => update(e.target.value)} />
|
||||
</form>
|
||||
<span class="navbar-text">
|
||||
<span className="navbar-text">
|
||||
<Link to="/search-help">
|
||||
<FontAwesome name="question-circle" />
|
||||
</Link>
|
||||
|
|
|
@ -5,14 +5,14 @@ import { formatAmount } from '../bitrate';
|
|||
export default function Ratio({ up, down }) {
|
||||
const ratio = up / down;
|
||||
if (isNaN(ratio)) {
|
||||
return <span class="ratio">
|
||||
return <span className="ratio">
|
||||
<span>0</span>
|
||||
<span></span>
|
||||
<span></span>
|
||||
</span>;
|
||||
}
|
||||
return (
|
||||
<span class="ratio">
|
||||
<span className="ratio">
|
||||
<span>
|
||||
{isFinite(ratio) ? `${ratio.toFixed(2)}` : "∞"}
|
||||
</span>
|
||||
|
|
|
@ -169,7 +169,7 @@ class Torrent extends Component {
|
|||
>
|
||||
<FontAwesome name={torrent.status === "paused" ? "play" : "pause"} />
|
||||
</a>
|
||||
<div class="status">{status(torrent.status)}</div>
|
||||
<div className="status">{status(torrent.status)}</div>
|
||||
<TorrentProgress torrent={torrent} />
|
||||
<ButtonDropdown
|
||||
isOpen={this.state.removeDropdown}
|
||||
|
@ -412,7 +412,7 @@ class TorrentDetails extends Component {
|
|||
key={id}
|
||||
/>)}
|
||||
{selection.length > 3 ?
|
||||
<p class="text-center text-muted">
|
||||
<p className="text-center text-muted">
|
||||
<strong>
|
||||
...{selection.length - 3} more hidden...
|
||||
</strong>
|
||||
|
|
|
@ -94,7 +94,7 @@ class TorrentTable extends Component {
|
|||
<th style={{ minWidth: '75px' }}>up</th>
|
||||
<th style={{ minWidth: '75px' }}>down</th>
|
||||
<th style={{width: "18rem"}}>
|
||||
<span class="ratio">
|
||||
<span className="ratio">
|
||||
<span>ratio</span>
|
||||
<span></span>
|
||||
<span></span>
|
||||
|
|
Loading…
Reference in New Issue
Block a user