diff --git a/src/routes/Footer.svelte b/src/routes/Footer.svelte
index ae838526..2993c967 100644
--- a/src/routes/Footer.svelte
+++ b/src/routes/Footer.svelte
@@ -8,6 +8,7 @@
import {loadLocaleAsync} from "../i18n/i18n-util.async"
import {tick} from "svelte"
import SyncOverlay from "./SyncOverlay.svelte"
+ import {serialPort} from "$lib/serial/connection"
let locale = (browser && (localStorage.getItem("locale") as Locales)) || detectLocale()
$: if (browser)
@@ -46,9 +47,14 @@
>
-
-
-
+
+ {#if !$serialPort}
+
+ warning{$LL.deviceManager.NO_DEVICE()}
+
+ {/if}
+
+
-
@@ -87,6 +93,14 @@
opacity: 0;
}
+ .warning {
+ color: var(--md-sys-color-error);
+ gap: 8px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
+
input[type="color"] {
cursor: pointer;
@@ -116,9 +130,10 @@
}
footer {
- display: flex;
+ display: grid;
align-items: center;
- justify-content: space-between;
+ justify-content: center;
+ grid-template-columns: 1fr auto 1fr;
width: 100%;
padding: 8px;
@@ -137,6 +152,10 @@
padding: 0;
list-style: none;
+
+ &:last-child {
+ justify-content: flex-end;
+ }
}
ul:last-child {
diff --git a/src/routes/Navigation.svelte b/src/routes/Navigation.svelte
index 39986b19..290e7098 100644
--- a/src/routes/Navigation.svelte
+++ b/src/routes/Navigation.svelte
@@ -50,15 +50,13 @@
{/await}
{/if}
- {#if $serialPort}
-
- {/if}
+