style: run prettier
This commit is contained in:
@ -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}
|
||||
|
||||
Reference in New Issue
Block a user