Skip to content

Commit

Permalink
Merge pull request #12 from Arzte/display-scores
Browse files Browse the repository at this point in the history
Display scores correctly
  • Loading branch information
ltouroumov authored Jul 3, 2024
2 parents 858abd7 + c0ebd47 commit 8a07a25
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/viewer/ViewMenuBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div class="d-flex flex-row items-center">
<button class="btn btn-light btn-lg i-solar-hamburger-menu-outline" />
</div>
<ViewScoreStatus short />
<ViewScoreStatus />
<div class="d-flex gap-1">
<button
class="btn btn-light btn-lg i-solar-magnifer-outline"
Expand Down
7 changes: 6 additions & 1 deletion components/viewer/ViewScoreStatus.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<span
v-for="{ score, value } in activeScores"
:key="score.id"
class="d-flex flex-row gap-2"
class="d-flex flex-row gap-2 score"
>
<span v-if="score.beforeText && !short">{{ score.beforeText }}</span>
<span>{{ -value }}</span>
Expand Down Expand Up @@ -39,3 +39,8 @@ const activeScores = computed<{ score: PointType; value: number }[]>(() => {
)(scores);
});
</script>
<style land="scss">
.score {
padding-right: 25px;
}
</style>

0 comments on commit 8a07a25

Please sign in to comment.