Pixel values should use numbers, not strings

React converts to string and adds 'px' automatically
This commit is contained in:
Feross Aboukhadijeh
2016-09-26 20:19:36 -07:00
parent 5bcf1c6379
commit f4ee831319

View File

@@ -1,5 +1,6 @@
const React = require('react')
const prettyBytes = require('prettier-bytes')
const Checkbox = require('material-ui/Checkbox').default
const LinearProgress = require('material-ui/LinearProgress').default
@@ -120,8 +121,14 @@ module.exports = class TorrentList extends React.Component {
<Checkbox
key='download-button'
className={'control download ' + torrentSummary.status}
style={{display: 'inline-block', width: '32px'}}
iconStyle={{width: '20px', height: '20px'}}
style={{
display: 'inline-block',
width: 32
}}
iconStyle={{
width: 20,
height: 20
}}
checked={isActive}
onClick={stopPropagation}
onCheck={dispatcher('toggleTorrent', infoHash)} />
@@ -133,11 +140,11 @@ module.exports = class TorrentList extends React.Component {
const styles = {
wrapper: {
display: 'inline-block',
marginRight: '8px'
marginRight: 8
},
progress: {
height: '8px',
width: '30px'
height: 8,
width: 30
}
}
return (