Duplicated screen: projection folds beside the open drawer, entry qr against the ring; entry qr at error level q; split ring column can shrink

This commit is contained in:
2026-11-17 20:48:44 +01:00
parent e1d8283f66
commit d945c801f7
3 changed files with 25 additions and 2 deletions
+4
View File
@@ -239,8 +239,12 @@ if (present) {
if (open && !drawer.querySelector("iframe")) {
drawer.append(h("iframe", { src: `/admin/${pid}#${encodeURIComponent(key)}`, title: "Administration" }));
}
// the projection folds into the room the drawer leaves, the entry qr slides along
const entryEl = $("#entry"), before = entryEl.hidden ? null : entryEl.getBoundingClientRect();
drawer.classList.toggle("open", open);
document.body.classList.toggle("ctl-open", open);
btn.setAttribute("aria-expanded", String(open));
flip(entryEl, before);
};
btn.addEventListener("click", () => toggle(!drawer.classList.contains("open")));
close.addEventListener("click", () => toggle(false));