diff --git a/frontend/app.js b/frontend/app.js index c277c0f..0d1a2a5 100644 --- a/frontend/app.js +++ b/frontend/app.js @@ -619,13 +619,17 @@ function renderPrinterState(info, live) { if (!info || !info.configured) { el.className = 'printer-state off'; - el.textContent = 'Kein Bondrucker eingerichtet. Einzurichten in der .env des Servers (PRINTER_HOST) – siehe deploy/bondrucker/README.md.'; + el.textContent = 'Kein Bondrucker eingerichtet – es wird nichts gedruckt, ' + + 'und die Bon-Knöpfe an den Timern und in der Historie sind ausgeblendet. ' + + 'Über „🔧 Drucker einrichten" lässt sich einer hinzufügen.'; if (testBtn) testBtn.disabled = true; return; } if (testBtn) testBtn.disabled = false; - const ziel = `${info.host}:${info.port}`; + // Ohne bekannte Adresse (Statusabfrage selbst fehlgeschlagen) nicht + // "undefined:undefined" anzeigen. + const ziel = info.host ? `${info.host}:${info.port}` : 'Drucker'; if (live === undefined) { el.className = 'printer-state'; diff --git a/frontend/index.html b/frontend/index.html index 34dd819..48ccefe 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -581,8 +581,6 @@ line-height: 1.5; } - .form-group + .form-group { margin-top: 1.25rem; } - .checkbox-row { display: flex; align-items: flex-start; @@ -624,8 +622,6 @@ gap: 1rem; } - .setup-grid .form-group + .form-group { margin-top: 0; } - @media (max-width: 600px) { .setup-grid { grid-template-columns: 1fr; } } @@ -943,6 +939,6 @@
- +