Skip to content

Commit

Permalink
Use monospace font on DepthIndicator
Browse files Browse the repository at this point in the history
This way the sensor value does not affect the widget size.
  • Loading branch information
rafaellehmkuhl committed Sep 13, 2023
1 parent 355b326 commit a3c2db8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/mini-widgets/DepthIndicator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@
<div class="flex items-center w-fit min-w-[8rem] max-w-[9rem] h-12 p-1 text-white justify-center">
<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">
<span class="text-xl font-semibold leading-6 w-fit">{{ round(averageDepth, 2) }} m</span>
<div>
<span class="font-mono text-xl font-semibold leading-6 w-fit">{{ round(averageDepth, 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>
</div>
</div>
Expand Down

0 comments on commit a3c2db8

Please sign in to comment.