Barre de progression plus visible

pull/206/head
Mael 2018-03-14 17:10:28 +01:00 committed by Laurent Bossavit
parent edd8f87fcd
commit cf1fe6b887
2 changed files with 12 additions and 17 deletions

View File

@ -1,14 +1,8 @@
#sim .tip {
.progressTip {
font-style: italic;
margin-bottom: -0.3em;
text-align: center;
}
#sim .tip p {
.progressTip p {
margin: 0;
}
#sim .tip progress {
margin-left: 1em;
background: white;
border-width: 1px;
border-style: solid;
}

View File

@ -30,24 +30,25 @@ export default class ProgressTip extends Component {
) : null
if (!conversationVisible) return null
return (
<div className="tip">
{nbQuestions != 0 && (
<p>
{nbQuestions === 1
? 'Une dernière question !'
: `Moins de ${nbQuestions} questions`}
nbQuestions != 0 && (
<div className="progressTip">
{foldedSteps.length > 0 && (
<Line
percent={
100 * foldedSteps.length / (foldedSteps.length + nbQuestions)
}
strokeWidth="1"
strokeColor={colour}
trailColor="white"
strokeLinecap="butt"
/>
)}
<p>
{nbQuestions === 1
? 'Une dernière question !'
: `Moins de ${nbQuestions} questions`}
</p>
)}
</div>
</div>
)
)
}
}