mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-07 10:28:11 +08:00
remove whitespace from heatmap
This commit is contained in:
@@ -55,13 +55,11 @@ class CategoryValue extends React.Component {
|
|||||||
width: 200,
|
width: 200,
|
||||||
flexShrink: 0,
|
flexShrink: 0,
|
||||||
margin: 0,
|
margin: 0,
|
||||||
lineHeight: "1em"
|
// lineHeight: "1em"
|
||||||
}}
|
}}>
|
||||||
>
|
|
||||||
<input
|
<input
|
||||||
onChange={
|
style={{position: "relative", top: 1}}
|
||||||
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,14 +68,13 @@ class CategoryValue extends React.Component {
|
|||||||
<p
|
<p
|
||||||
style={{
|
style={{
|
||||||
padding: "1px 10px",
|
padding: "1px 10px",
|
||||||
backgroundColor: c
|
width: 80,
|
||||||
? this.props.colorScale(this.props.value)
|
textAlign: "center",
|
||||||
: "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