Skip to content

Commit

Permalink
Fix the number of fractional digits in the DepthIndicator
Browse files Browse the repository at this point in the history
This way values like `0.70` are not displayed as `0.7`, which affects the widget size.
  • Loading branch information
rafaellehmkuhl committed Sep 13, 2023
1 parent a3c2db8 commit 992ba52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/mini-widgets/DepthIndicator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<img src="@/assets/depth-icon.svg" class="h-full" :draggable="false" />
<div class="flex flex-col items-start justify-center ml-1 min-w-[4rem] max-w-[6rem] select-none">
<div>
<span class="font-mono text-xl font-semibold leading-6 w-fit">{{ round(averageDepth, 2) }}</span>
<span class="font-mono text-xl font-semibold leading-6 w-fit">{{ round(averageDepth, 2).toFixed(2) }}</span>
<span class="text-xl font-semibold leading-6 w-fit"> m</span>
</div>
<span class="w-full text-sm font-semibold leading-4 whitespace-nowrap">Depth</span>
Expand Down

0 comments on commit 992ba52

Please sign in to comment.