Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Le jeu™
XTremTrail
Commits
3308b087
Unverified
Commit
3308b087
authored
Dec 17, 2021
by
Maxime FRIESS
💙
Browse files
[ui] Round globalPop display (closes #30)
parent
7776f17a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/pages/Done.tsx
View file @
3308b087
...
...
@@ -93,7 +93,7 @@ export const Done: FC = () => {
<
div
style
=
{
{
width
:
'
20vw
'
}
}
>
<
Progress
percent
=
{
globalPop
/
5
}
/>
</
div
>
<
div
style
=
{
{
fontSize
:
'
32px
'
,
marginTop
:
'
0.5em
'
,
marginBottom
:
'
0.5em
'
}
}
>
{
globalPop
}
/500
</
div
>
<
div
style
=
{
{
fontSize
:
'
32px
'
,
marginTop
:
'
0.5em
'
,
marginBottom
:
'
0.5em
'
}
}
>
{
Math
.
round
(
globalPop
)
}
/500
</
div
>
{
runs
.
map
((
run
:
Run
,
index
:
number
)
=>
{
return
(
<
div
...
...
src/pages/Start.tsx
View file @
3308b087
...
...
@@ -61,7 +61,7 @@ export const Start = () => {
<
div
style
=
{
{
width
:
'
20vw
'
}
}
>
<
Progress
percent
=
{
globalPop
/
5
}
/>
</
div
>
<
div
style
=
{
{
fontSize
:
'
32px
'
,
marginTop
:
'
0.5em
'
}
}
>
{
globalPop
}
/500
</
div
>
<
div
style
=
{
{
fontSize
:
'
32px
'
,
marginTop
:
'
0.5em
'
}
}
>
{
Math
.
round
(
globalPop
)
}
/500
</
div
>
</
div
>
</
PlayContainerMid
>
<
PlayContainerBot
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment