Pixel values should use numbers, not strings
React converts to string and adds 'px' automatically
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
const React = require('react')
|
const React = require('react')
|
||||||
const prettyBytes = require('prettier-bytes')
|
const prettyBytes = require('prettier-bytes')
|
||||||
|
|
||||||
const Checkbox = require('material-ui/Checkbox').default
|
const Checkbox = require('material-ui/Checkbox').default
|
||||||
const LinearProgress = require('material-ui/LinearProgress').default
|
const LinearProgress = require('material-ui/LinearProgress').default
|
||||||
|
|
||||||
@@ -120,8 +121,14 @@ module.exports = class TorrentList extends React.Component {
|
|||||||
<Checkbox
|
<Checkbox
|
||||||
key='download-button'
|
key='download-button'
|
||||||
className={'control download ' + torrentSummary.status}
|
className={'control download ' + torrentSummary.status}
|
||||||
style={{display: 'inline-block', width: '32px'}}
|
style={{
|
||||||
iconStyle={{width: '20px', height: '20px'}}
|
display: 'inline-block',
|
||||||
|
width: 32
|
||||||
|
}}
|
||||||
|
iconStyle={{
|
||||||
|
width: 20,
|
||||||
|
height: 20
|
||||||
|
}}
|
||||||
checked={isActive}
|
checked={isActive}
|
||||||
onClick={stopPropagation}
|
onClick={stopPropagation}
|
||||||
onCheck={dispatcher('toggleTorrent', infoHash)} />
|
onCheck={dispatcher('toggleTorrent', infoHash)} />
|
||||||
@@ -133,11 +140,11 @@ module.exports = class TorrentList extends React.Component {
|
|||||||
const styles = {
|
const styles = {
|
||||||
wrapper: {
|
wrapper: {
|
||||||
display: 'inline-block',
|
display: 'inline-block',
|
||||||
marginRight: '8px'
|
marginRight: 8
|
||||||
},
|
},
|
||||||
progress: {
|
progress: {
|
||||||
height: '8px',
|
height: 8,
|
||||||
width: '30px'
|
width: 30
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user