From adf556c36f862bcdb5a1beb9245c48210b083988 Mon Sep 17 00:00:00 2001 From: Mael Date: Mon, 22 Jul 2019 11:57:27 +0200 Subject: [PATCH] :art: Alignement des valeurs des expressions dans /doc --- source/components/rule/Algorithm.css | 14 +++++--------- source/engine/mecanismViews/Variations.js | 2 +- source/engine/mecanisms.js | 2 +- source/locales/en.yaml | 1 - 4 files changed, 7 insertions(+), 12 deletions(-) diff --git a/source/components/rule/Algorithm.css b/source/components/rule/Algorithm.css index de8d70715..42d1b1053 100644 --- a/source/components/rule/Algorithm.css +++ b/source/components/rule/Algorithm.css @@ -23,24 +23,22 @@ display: inline-block; } -.node.inlineExpression:not(.comparison):not(.negation) { +.node.inlineExpression:not(.comparison) { padding-left: 0; display: flex; align-items: baseline; flex-direction: row; flex-wrap: wrap; + justify-content: space-between; } .nodeContent { margin-right: 0.3em; } -#rule-rules - .inlineExpression:not(.comparison):not(.negation) - > .situationValue { +#rule-rules .inlineExpression:not(.comparison) > .situationValue { margin-left: 0.3em; margin-bottom: 0.6em; margin-top: 0.3em; align-items: flex-end; - flex: 1; text-align: right; } @@ -210,8 +208,7 @@ .mecanism.cond *:not(.nodeContent) > .variable .name, .mecanism.variations *:not(.nodeContent) > .variable .name, -.inlineExpression.comparison, -.inlineExpression.negation { +.inlineExpression.comparison { display: flex; align-items: baseline; } @@ -223,8 +220,7 @@ > .variable .name .situationValue, -.inlineExpression.comparison > .situationValue, -.inlineExpression.negation > .situationValue { +.inlineExpression.comparison > .situationValue { order: -1; } diff --git a/source/engine/mecanismViews/Variations.js b/source/engine/mecanismViews/Variations.js index af9f868f4..2683cf337 100644 --- a/source/engine/mecanismViews/Variations.js +++ b/source/engine/mecanismViews/Variations.js @@ -46,7 +46,7 @@ let Comp = withLanguage(function Variations({ }}> {!satisfied && showValues && ( <> - non applicable{' '} + non applicable {expandedVariation !== i ? (