🎨 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 baspull/603/head
parent
78da370cb8
commit
86a3002452
|
@ -153,7 +153,7 @@
|
|||
.mecanism-result {
|
||||
position: absolute;
|
||||
display: none;
|
||||
top: -4px;
|
||||
bottom: 0px;
|
||||
right: 0;
|
||||
}
|
||||
#rule-rules.showValues .mecanism-result {
|
||||
|
|
|
@ -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>= </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>
|
||||
)
|
||||
) : (
|
||||
|
|
Loading…
Reference in New Issue