05/07: updated extension password item's more option has been covered

This commit is contained in:
2026-05-07 14:25:06 -04:00
parent 5d0acf696c
commit 2f9d4996a8
2 changed files with 19 additions and 6 deletions
+1 -3
View File
@@ -935,9 +935,7 @@ body {
/* ── Three-dot flyout menu ───────────────────────────────────────────────── */
.pk-flyout {
position: absolute;
top: calc(100% + 4px);
right: 0;
position: fixed;
z-index: 9999;
background: #ffffff;
border: 1px solid #e5e7eb;
+18 -3
View File
@@ -1021,9 +1021,24 @@ function renderList() {
flyout.appendChild(row);
});
// Position flyout below the button, right-aligned.
btn.style.position = "relative";
btn.appendChild(flyout);
// Position flyout using fixed coords so it escapes vault-list overflow clipping.
const appEl = document.getElementById("app");
appEl.appendChild(flyout);
const btnRect = btn.getBoundingClientRect();
const flyoutH = flyout.offsetHeight || 120; // estimate if not yet painted
const spaceBelow = window.innerHeight - btnRect.bottom;
const flyoutW = flyout.offsetWidth || 160;
// Flip upward if not enough room below.
if (spaceBelow < flyoutH + 8) {
flyout.style.top = (btnRect.top - flyoutH - 4) + "px";
} else {
flyout.style.top = (btnRect.bottom + 4) + "px";
}
// Right-align with the button, but keep inside the popup.
const rightEdge = window.innerWidth - btnRect.right;
flyout.style.right = rightEdge + "px";
// Close on any outside click.
setTimeout(() => {