style: fix skeleton widths
This commit is contained in:
parent
44e76144dd
commit
e447b133ca
1 changed files with 16 additions and 6 deletions
|
@ -19,12 +19,22 @@
|
||||||
$: placeholder = accx === -999 && accy === -999
|
$: placeholder = accx === -999 && accy === -999
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="flex flex-col gap-2 text-center justify-center">
|
<div class="flex flex-col gap-2 text-center transition-all">
|
||||||
<p class="text-xl font-medium" class:placeholder>
|
<p class="text-xl font-medium">
|
||||||
|
{#if !placeholder}
|
||||||
Heading {getDirection(orientation)} ({orientation.toFixed(2)}°)
|
Heading {getDirection(orientation)} ({orientation.toFixed(2)}°)
|
||||||
|
{:else}
|
||||||
|
<span class="placeholder">--------------------------------</span>
|
||||||
|
{/if}
|
||||||
</p>
|
</p>
|
||||||
<p class="text-lg font-medium" class:placeholder>
|
<p class="text-lg font-medium">
|
||||||
|
{#if !placeholder}
|
||||||
{getAcceleration(accResolved)} ({mpss2knps(accResolved).toFixed(2)}
|
{getAcceleration(accResolved)} ({mpss2knps(accResolved).toFixed(2)}
|
||||||
kn/s)
|
kn/s)
|
||||||
|
{:else}
|
||||||
|
<span class="placeholder"
|
||||||
|
>-----------------------------------------------------</span
|
||||||
|
>
|
||||||
|
{/if}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue