style: run prettier
All checks were successful
TrafficCue CI / check (push) Successful in 1m34s
TrafficCue CI / build (push) Successful in 10m30s
TrafficCue CI / build-android (push) Successful in 26m47s

This commit is contained in:
2025-10-21 15:46:50 +02:00
parent 4036790a4b
commit 372b31876d
17 changed files with 306 additions and 167 deletions

View File

@ -178,8 +178,13 @@
{/if}
{#if !hideSearch && !!location.speed != false}
<div id="speedometer" style="position: fixed; {mobileView ? `bottom: calc(50px + ${sidebarHeight.current}px + 10px); right: 10px;` : "bottom: 10px; right: 10px;"}">
{(location.speed * 3.6 | 0).toFixed(0)}
<div
id="speedometer"
style="position: fixed; {mobileView
? `bottom: calc(50px + ${sidebarHeight.current}px + 10px); right: 10px;`
: 'bottom: 10px; right: 10px;'}"
>
{((location.speed * 3.6) | 0).toFixed(0)}
</div>
{/if}
{#if getRoadMetadata().current}
@ -187,7 +192,12 @@
{#if meta.maxspeed}
{@const maxspeed = getSpeed(meta.maxspeed)}
{#if maxspeed && maxspeed < 100}
<div id="max-speed" style="position: fixed; {mobileView ? `bottom: calc(50px + ${sidebarHeight.current}px + 10px + 2ch + 20px + 10px); right: 10px;` : "bottom: calc(10px + 2ch + 20px + 10px); right: 10px;"}">
<div
id="max-speed"
style="position: fixed; {mobileView
? `bottom: calc(50px + ${sidebarHeight.current}px + 10px + 2ch + 20px + 10px); right: 10px;`
: 'bottom: calc(10px + 2ch + 20px + 10px); right: 10px;'}"
>
{meta.maxspeed}
</div>
{/if}