From e2f110fdbfe39ddf99f0577aee48944a905ab7da Mon Sep 17 00:00:00 2001 From: jrmartin Date: Fri, 23 Apr 2021 17:21:16 -0700 Subject: [PATCH] #1115 Styling circuit browser to match design --- .../interface/VFBCircuitBrowser/Controls.js | 31 +++++++++++-------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/components/interface/VFBCircuitBrowser/Controls.js b/components/interface/VFBCircuitBrowser/Controls.js index 6a212b5b1..349b33a9e 100644 --- a/components/interface/VFBCircuitBrowser/Controls.js +++ b/components/interface/VFBCircuitBrowser/Controls.js @@ -70,9 +70,9 @@ const styles = theme => ({ }, expanded: { minHeight : "15px !important", margin : "0px !important" }, // Override default padding in Add Neuron button - addNeuron : { padding : "8px 5px 0px 2px" }, + addNeuron : { padding : "2vh 2vh 0px 2px" }, // Override default padding in Delete Neuron button - deleteNeuron : { padding : "4px 0px 0px 4px" }, + deleteNeuron : { padding : "2vh 0px 0px 4px" }, dottedIcon : { margin : "1rem 0 1rem 0 " }, legend : { padding: "2vh", @@ -91,7 +91,7 @@ const styles = theme => ({ height : "2vh", width : "2vh" }, - weightInput : { color : "white !important" } + weightInput : { color : "white !important", height : "20px", border : "none !important", backgroundColor: "#80808040 !important", paddingLeft : "10px !important" } }); /** @@ -152,6 +152,7 @@ class AutocompleteResults extends Component { render () { const label = "Neuron " + (this.props.index + 1) .toString(); + return ( )} @@ -419,15 +420,15 @@ class Controls extends Component { - - + +
- + { neuronFields.map((field, index) => ( @@ -454,19 +455,23 @@ class Controls extends Component { ))} - + { addNeuronDisabled ? null - : + + + } + + + { addNeuronDisabled + ? null + : Add Neuron }