🎨 Symbole égalité pour les valeurs de méca et alignement en bas

D'après le peu de tests effectués (2) le résultat du mécanisme est mieux
en bas
pull/603/head
Mael 2019-07-23 14:04:05 +02:00
parent 78da370cb8
commit 86a3002452
2 changed files with 4 additions and 3 deletions

View File

@ -153,7 +153,7 @@
.mecanism-result {
position: absolute;
display: none;
top: -4px;
bottom: 0px;
right: 0;
}
#rule-rules.showValues .mecanism-result {

View File

@ -13,7 +13,7 @@ import mecanismColours from './colours'
import classnames from 'classnames'
import Value from 'Components/Value'
export let NodeValuePointer = ({ data, unit }) => (
export let NodeValuePointer = ({ data, unit, equalSign }) => (
<span
className={classnames('situationValue', {
boolean: typeof data == 'boolean'
@ -28,6 +28,7 @@ export let NodeValuePointer = ({ data, unit }) => (
line-height: 1.6em;
border-radius: 0.2rem;
`}>
{equalSign && <span>=&nbsp;</span>}
<Value nodeValue={data} unit={unit} />
</span>
)
@ -58,7 +59,7 @@ export class Node extends Component {
{name ? (
!isNil(value) && (
<div className="mecanism-result">
<NodeValuePointer data={value} unit={unit} />
<NodeValuePointer equalSign data={value} unit={unit} />
</div>
)
) : (