feat(web): fit the console and status pages to phones and tablets
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Successful in 6m4s
ci / test (pull_request) Successful in 11m52s
ci / build (pull_request) Successful in 17m48s
ci / image (pull_request) Successful in 5m28s
ci / lint (push) Skipped
ci / test (push) Skipped
ci / build (push) Skipped
ci / image (push) Skipped
ci / lint (pull_request) Successful in 6m4s
ci / test (pull_request) Successful in 11m52s
ci / build (pull_request) Successful in 17m48s
ci / image (pull_request) Successful in 5m28s
- The console header folds its navigation into a menu below 1024px. - Pages use narrower gutters on phones. - Monitor rows keep name and uptime in place on narrow screens. - Toolbars and the range switch wrap. - Tables scroll sideways instead of squeezing their columns. - Form fields keep 16px text on touch screens so iOS does not zoom in. - The status page footer wraps. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
1 parent
442b45b974
commit
670dde40b6
22 files changed
+1353
-1276
No files matched your search
@@ -108,3 +108,13 @@
|
||||
filter: invert(0.92) hue-rotate(180deg);
|
||||
}
|
||||
}
|
||||
|
||||
/* Outside any layer so it wins over text-sm and text-xs: iOS zooms into
|
||||
form fields whose text is smaller than 16px. */
|
||||
@media (pointer: coarse) {
|
||||
input:not([type="checkbox"]):not([type="radio"]),
|
||||
select,
|
||||
textarea {
|
||||
font-size: max(16px, 1em);
|
||||
}
|
||||
}
|
||||
@@ -179,6 +179,13 @@
|
||||
});
|
||||
|
||||
document.addEventListener("click", async (ev) => {
|
||||
const navToggle = ev.target.closest("[data-nav-toggle]");
|
||||
if (navToggle) {
|
||||
const nav = document.getElementById(navToggle.dataset.navToggle);
|
||||
const open = nav?.classList.toggle("hidden") === false;
|
||||
navToggle.setAttribute("aria-expanded", String(open));
|
||||
return;
|
||||
}
|
||||
const locale = ev.target.closest("[data-locale]");
|
||||
if (locale) {
|
||||
await api.post("/locale", { locale: locale.dataset.locale }).catch(() => {});
|
||||
|
||||
Reference in new issue
Block a user