From 2389cc0cf3a67ab7679c61308e37f67e1ee185e8 Mon Sep 17 00:00:00 2001 From: Chris Dumas Date: Thu, 15 Oct 2026 11:13:30 +0000 Subject: [PATCH] Keep prompt autocomplete visible --- web/sequence_prompt_builder.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/sequence_prompt_builder.js b/web/sequence_prompt_builder.js index eefc6f6..ff730a2 100644 --- a/web/sequence_prompt_builder.js +++ b/web/sequence_prompt_builder.js @@ -338,7 +338,7 @@ function configure(node) { closeAutocomplete(); autocompleteRange = { start: at, end: at + 1 }; const menu = el("div"); - menu.style.cssText = "position:absolute;z-index:30;left:4px;min-width:220px;max-width:310px;padding:5px;background:#25282b;border:1px solid #4b5960;border-radius:8px;box-shadow:0 8px 24px #000b;color:#e7edf0;pointer-events:auto"; + menu.style.cssText = "display:block;visibility:visible;opacity:1;position:absolute;z-index:100;left:4px;min-width:220px;max-width:310px;padding:5px;background:#25282b;border:1px solid #4b5960;border-radius:8px;box-shadow:0 8px 24px #000b;color:#e7edf0;pointer-events:auto"; const line = prompt.value.slice(0, promptSelectionStart).split("\n").length - 1; menu.style.top = `${Math.min(Math.max(4, prompt.clientHeight - 150), 4 + line * 17)}px`; const connected = Array.from({ length: 9 }, (_, offset) => offset + 1) @@ -401,7 +401,7 @@ function configure(node) { openAutocomplete(start); }; promptFrame = el("div"); - promptFrame.style.cssText = "position:relative;width:100%;box-sizing:border-box"; + promptFrame.style.cssText = "position:relative;overflow:visible;width:100%;box-sizing:border-box"; promptFrame.append(prompt); panel.append(promptFrame); const checkLabel = el("div", "PROMPT CHECK"); checkLabel.style.cssText = "color:#8fa898;font-size:10px;letter-spacing:.08em;margin:7px 0 3px"; panel.append(checkLabel);