Skip to content

Commit b787d1a

Browse files
committed
user facing language/UX fixes
1 parent 6aaa87d commit b787d1a

2 files changed

Lines changed: 8 additions & 21 deletions

File tree

src/portal_html.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,7 @@ pre.stats{font-size:.72rem;color:var(--muted);white-space:pre-wrap;margin:.75rem
143143
144144
<div class="card">
145145
<div class="hd">OpenTrack (PC)</div>
146-
<p class="hint">Pick <strong>one</strong> input in OpenTrack: USB Hatire <em>or</em> UDP—not both. You can turn USB off below for Wi‑Fi‑only builds.</p>
147-
<p class="hint" style="margin-top:.5rem">Your PC’s <strong>IPv4</strong> or a hostname your <strong>router’s DNS</strong> knows. <code>.local</code> / mDNS usually <strong>fail</strong> from the board—prefer an address or a DHCP hostname.</p>
146+
<p class="hint">Your PC’s <strong>IPv4</strong> or a hostname your <strong>router’s DNS</strong> knows. <code>.local</code> / mDNS usually <strong>fail</strong> from the board—prefer an address or a DHCP hostname.</p>
148147
<div class="row" style="margin-bottom:.6rem">
149148
<span>USB Hatire output</span>
150149
<button type="button" class="toggle" id="hatireToggle" aria-label="Toggle Hatire USB"></button>

web-flasher/index.html

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,12 @@
174174
}
175175
.after-steps li { margin-bottom: 0.65rem; }
176176
.after-steps li:last-child { margin-bottom: 0; }
177+
.flash-timing {
178+
font-size: 0.88rem;
179+
color: var(--tx-soft);
180+
margin: 1rem 0 0;
181+
line-height: 1.5;
182+
}
177183
</style>
178184
</head>
179185
<body>
@@ -205,6 +211,7 @@ <h2 id="h-flash">Install</h2>
205211
<summary>Stuck? Bootloader mode</summary>
206212
Hold <strong>BOOT</strong>, tap <strong>RST</strong>, release <strong>BOOT</strong>, then try the button again.
207213
</details>
214+
<p class="flash-timing">The progress dialog uses a generic time estimate; on this board, flashing is usually well under a minute.</p>
208215
</div>
209216
</section>
210217

@@ -235,24 +242,5 @@ <h2 id="h-after">When it’s done</h2>
235242
if (el) el.hidden = true;
236243
})();
237244
</script>
238-
<script>
239-
(function () {
240-
var mark = "Installation complete!";
241-
setInterval(function () {
242-
document.querySelectorAll("ewt-install-dialog").forEach(function (host) {
243-
if (host.dataset.ewtAutocloseScheduled) return;
244-
var root = host.shadowRoot;
245-
if (!root) return;
246-
if ((root.textContent || "").indexOf(mark) === -1) return;
247-
host.dataset.ewtAutocloseScheduled = "1";
248-
setTimeout(function () {
249-
if (!host.isConnected) return;
250-
var inner = host.shadowRoot && host.shadowRoot.querySelector("ew-dialog");
251-
if (inner && typeof inner.close === "function") inner.close();
252-
}, 700);
253-
});
254-
}, 200);
255-
})();
256-
</script>
257245
</body>
258246
</html>

0 commit comments

Comments
 (0)