Skip to content

Commit

Permalink
Gauge Tank rendering issue - FF expects styles to be given with lengt…
Browse files Browse the repository at this point in the history
…h units if other than zero.

Fixes #1345
  • Loading branch information
hotNipi committed Dec 5, 2024
1 parent 151273e commit ef36b1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/widgets/ui-gauge/types/UIGaugeTank.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
>
<div class="nrdb-ui-gauge-tank--center">
<div ref="fill" class="nrdb-ui-gauge-tank--fill" />
<svg class="WaveBG" :style="`bottom: 0;height: ${svgBottom}`" :viewBox="`0 ${amplitude} 1000 ${Math.min(100, svgScaleRatio * svgBottom)}`" preserveAspectRatio="xMinYMin meet">
<svg class="WaveBG" :style="`bottom: 0; height: ${svgBottom}px`" :viewBox="`0 ${amplitude} 1000 ${Math.min(100, svgScaleRatio * svgBottom)}`" preserveAspectRatio="xMinYMin meet">
<path :d="waves[0]">
<animate
dur="5s"
Expand All @@ -17,7 +17,7 @@
/>
</path>
</svg>
<svg class="Wave" :style="`bottom: 0;height: ${svgBottom}`" :viewBox="`0 ${amplitude} 1000 ${Math.min(100, svgScaleRatio * svgBottom)}`" preserveAspectRatio="xMinYMin meet">
<svg class="Wave" :style="`bottom: 0; height: ${svgBottom}px;`" :viewBox="`0 ${amplitude} 1000 ${Math.min(100, svgScaleRatio * svgBottom)}`" preserveAspectRatio="xMinYMin meet">
<path :d="waves[0]">
<animate
dur="5s"
Expand Down

0 comments on commit ef36b1d

Please sign in to comment.