From 6d4aaeb3dcc6f471c20fd82327da9965ed1d17a1 Mon Sep 17 00:00:00 2001 From: Laurent Bossavit Date: Thu, 26 Apr 2018 12:36:56 +0200 Subject: [PATCH] :gear: Supprime la barre d'avancement, garde l'espacement quand la simulation est finie --- source/components/ProgressTip.css | 12 +++--------- source/components/ProgressTip.js | 18 ++++-------------- 2 files changed, 7 insertions(+), 23 deletions(-) diff --git a/source/components/ProgressTip.css b/source/components/ProgressTip.css index 778ac323a..5492db783 100644 --- a/source/components/ProgressTip.css +++ b/source/components/ProgressTip.css @@ -1,19 +1,13 @@ .progressTip { max-width: 40em; margin: .2em auto; - - -} -.progressTip svg { - display: inline-block; - width: calc(100% - 11em); - margin-right: 1em; } + .progressTip p { display: inline-block; - width: 10em; + width: 100%; margin: .1em 0 1.6em; - text-align: right; + text-align: center; font-weight: 600; } diff --git a/source/components/ProgressTip.js b/source/components/ProgressTip.js index 1ea4dd99a..57dede3b7 100644 --- a/source/components/ProgressTip.js +++ b/source/components/ProgressTip.js @@ -23,20 +23,9 @@ export default class ProgressTip extends Component { if (!conversationStarted) return null return ( - nbQuestions != 0 && (
- 0 ? 'visible' : 'hidden' - }} - percent={ - 100 * foldedSteps.length / (foldedSteps.length + nbQuestions) - } - trailWidth="1" - strokeWidth="2" - strokeColor={colour} - /> - + { nbQuestions != 0 + ?

{nbQuestions === 1 ? @@ -47,8 +36,9 @@ export default class ProgressTip extends Component { }

+ : +
}
- ) ) } }