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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user