From e447b133ca217eba969ed6ec3c749e41133083dd Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Fri, 23 Feb 2024 17:27:25 -0800 Subject: [PATCH] style: fix skeleton widths --- client/src/lib/Dashboard/Compass.svelte | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/client/src/lib/Dashboard/Compass.svelte b/client/src/lib/Dashboard/Compass.svelte index a22fe28..86837a9 100644 --- a/client/src/lib/Dashboard/Compass.svelte +++ b/client/src/lib/Dashboard/Compass.svelte @@ -19,12 +19,22 @@ $: placeholder = accx === -999 && accy === -999 -
-

- Heading {getDirection(orientation)} ({orientation.toFixed(2)}°) +

+

+ {#if !placeholder} + Heading {getDirection(orientation)} ({orientation.toFixed(2)}°) + {:else} + -------------------------------- + {/if}

-

- {getAcceleration(accResolved)} ({mpss2knps(accResolved).toFixed(2)} - kn/s) +

+ {#if !placeholder} + {getAcceleration(accResolved)} ({mpss2knps(accResolved).toFixed(2)} + kn/s) + {:else} + ----------------------------------------------------- + {/if}