From 80fd16a0d9fb95df880938f96a597878c629532c Mon Sep 17 00:00:00 2001 From: Laurent Bossavit Date: Sun, 8 Oct 2017 16:07:13 +0200 Subject: [PATCH] =?UTF-8?q?:gear:=20Pr=C3=A9senter=20plus=20explicitement?= =?UTF-8?q?=20les=20r=C3=A9sultats?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/components/Results.css | 2 +- source/components/Results.js | 6 +++--- source/components/rule/Algorithm.js | 1 + source/components/rule/Rule.js | 4 ++-- source/components/rule/RuleValueVignette.css | 2 +- source/components/rule/RuleValueVignette.js | 6 ++++-- 6 files changed, 12 insertions(+), 9 deletions(-) diff --git a/source/components/Results.css b/source/components/Results.css index 926314f9b..868478182 100644 --- a/source/components/Results.css +++ b/source/components/Results.css @@ -7,7 +7,7 @@ padding: .6em 0; text-align: center; width: 100%; - height: 10em; + height: 12em; position: fixed; bottom: 0; left: 0; diff --git a/source/components/Results.js b/source/components/Results.js index 9ef6b4c91..a34c57296 100644 --- a/source/components/Results.js +++ b/source/components/Results.js @@ -31,7 +31,8 @@ export default class Results extends Component { } = this.props - let explanation = R.has('root', analysedSituation) && clearDict() && getObjectives(situationGate, analysedSituation.root, analysedSituation.parsedRules) + let explanation = R.has('root', analysedSituation) && clearDict() && getObjectives(situationGate, analysedSituation.root, analysedSituation.parsedRules), + hint = analysedSituation.root.simulateur && analysedSituation.root.simulateur.indice if (!explanation) return null @@ -46,12 +47,11 @@ export default class Results extends Component { :
-

Vos résultats

+

{hint || "Vos résultats"}:

{do {let text = R.path(['simulateur', 'résultats'])(analysedSituation.root) text &&

{text}

}} -

Cliquez pour comprendre chaque calcul

}