🎨 Avancement plus compact en hauteur

pull/206/head
Mael 2018-04-05 18:37:41 +02:00 committed by Laurent Bossavit
parent 1d146c255f
commit aad5358c47
2 changed files with 15 additions and 8 deletions

View File

@ -1,8 +1,17 @@
.progressTip {
text-align: center;
max-width: 35em;
margin: 0 auto;
}
.progressTip svg {
display: inline-block;
width: 58%;
margin-right: 2%
}
.progressTip p {
margin: .1em 0 2em
display: inline-block;
width: 40%;
margin: .1em 0 1.6em;
text-align: right;
}

View File

@ -21,8 +21,6 @@ export default class ProgressTip extends Component {
} = this.props,
nbQuestions = nextSteps.length
console.log(colour, 'tc')
if (!conversationStarted) return null
return (
nbQuestions != 0 && (
@ -32,15 +30,15 @@ export default class ProgressTip extends Component {
percent={
100 * foldedSteps.length / (foldedSteps.length + nbQuestions)
}
trailWidth=".3"
strokeWidth="1"
trailWidth="1"
strokeWidth="2"
strokeColor={colour}
/>
)}
<p>
{nbQuestions === 1
? 'Une dernière question !'
: `Moins de ${nbQuestions} questions`}
? 'une dernière question !'
: `moins de ${nbQuestions} questions`}
</p>
</div>
)