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 authored and patrickelectric committed Sep 19, 2023
1 parent 19e7391 commit d9a971c
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 d9a971c

Please sign in to comment.