⚙️ Supprime la barre d'avancement, garde l'espacement quand la simulation est finie
parent
d959fa099b
commit
6d4aaeb3dc
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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>
|
||||
)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue