From 86a300245254bf54e46600a20af7e0153048e01d Mon Sep 17 00:00:00 2001 From: Mael Date: Tue, 23 Jul 2019 14:04:05 +0200 Subject: [PATCH] =?UTF-8?q?:art:=20Symbole=20=C3=A9galit=C3=A9=20pour=20le?= =?UTF-8?q?s=20valeurs=20de=20m=C3=A9ca=20et=20alignement=20en=20bas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit D'après le peu de tests effectués (2) le résultat du mécanisme est mieux en bas --- source/components/rule/Algorithm.css | 2 +- source/engine/mecanismViews/common.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/source/components/rule/Algorithm.css b/source/components/rule/Algorithm.css index 64feb8f03..32d6b2c4c 100644 --- a/source/components/rule/Algorithm.css +++ b/source/components/rule/Algorithm.css @@ -153,7 +153,7 @@ .mecanism-result { position: absolute; display: none; - top: -4px; + bottom: 0px; right: 0; } #rule-rules.showValues .mecanism-result { diff --git a/source/engine/mecanismViews/common.js b/source/engine/mecanismViews/common.js index 51b37dba7..add8ea619 100644 --- a/source/engine/mecanismViews/common.js +++ b/source/engine/mecanismViews/common.js @@ -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 }) => ( ( line-height: 1.6em; border-radius: 0.2rem; `}> + {equalSign && } ) @@ -58,7 +59,7 @@ export class Node extends Component { {name ? ( !isNil(value) && (
- +
) ) : (