⚙️ Supprime la barre d'avancement, garde l'espacement quand la simulation est finie

pull/209/head
Laurent Bossavit 2018-04-26 12:36:56 +02:00
parent d959fa099b
commit 6d4aaeb3dc
2 changed files with 7 additions and 23 deletions

View File

@ -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;
}

View File

@ -23,20 +23,9 @@ export default class ProgressTip extends Component {
if (!conversationStarted) return null
return (
nbQuestions != 0 && (
<div className="progressTip">
<Line
style={{
visibility: foldedSteps.length > 0 ? 'visible' : 'hidden'
}}
percent={
100 * foldedSteps.length / (foldedSteps.length + nbQuestions)
}
trailWidth="1"
strokeWidth="2"
strokeColor={colour}
/>
{ nbQuestions != 0
?
<p style={{ color: textColourOnWhite }}>
{nbQuestions === 1
?
@ -47,8 +36,9 @@ export default class ProgressTip extends Component {
</Trans>
}
</p>
:
<br/>}
</div>
)
)
}
}