mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-07 18:28:12 +08:00
prettier vlaue
This commit is contained in:
@@ -54,12 +54,15 @@ class CategoryValue extends React.Component {
|
|||||||
paddingLeft: 15,
|
paddingLeft: 15,
|
||||||
width: 200,
|
width: 200,
|
||||||
flexShrink: 0,
|
flexShrink: 0,
|
||||||
margin: 0,
|
margin: 0
|
||||||
// lineHeight: "1em"
|
// lineHeight: "1em"
|
||||||
}}>
|
}}
|
||||||
|
>
|
||||||
<input
|
<input
|
||||||
style={{position: "relative", top: 1}}
|
style={{ position: "relative", top: 1 }}
|
||||||
onChange={selected ? this.toggleOff.bind(this) : this.toggleOn.bind(this)}
|
onChange={
|
||||||
|
selected ? this.toggleOff.bind(this) : this.toggleOn.bind(this)
|
||||||
|
}
|
||||||
checked={selected}
|
checked={selected}
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
/>
|
/>
|
||||||
@@ -70,11 +73,14 @@ class CategoryValue extends React.Component {
|
|||||||
padding: "1px 10px",
|
padding: "1px 10px",
|
||||||
width: 80,
|
width: 80,
|
||||||
textAlign: "center",
|
textAlign: "center",
|
||||||
backgroundColor: c ? this.props.colorScale(this.props.value) : "inherit",
|
backgroundColor: c
|
||||||
|
? this.props.colorScale(this.props.value)
|
||||||
|
: "inherit",
|
||||||
color: c ? "white" : "black",
|
color: c ? "white" : "black",
|
||||||
margin: 0,
|
margin: 0
|
||||||
// lineHeight: "1em"
|
// lineHeight: "1em"
|
||||||
}}>
|
}}
|
||||||
|
>
|
||||||
{this.props.count}
|
{this.props.count}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user