Wiki editor: the [[ link menu covers the text being typed #1261

Closed
opened 2026-10-28 15:06:58 +00:00 by claude-bot · 0 comments
Collaborator

Found by the owner on prod (4.6.1), 2026-10-28. Typing [[Vel at the end of the second line of a page opens the link menu (Velara · Settlement / Create "Vel…") over the top-left of the text box, covering the first lines and the word being typed.

Cause. .ed-ac (pages/wiki/Editor.css) is absolutely positioned at a fixed spot, left: var(--sp-3); top: var(--sp-5, 2.5rem), below the box's top edge, wherever the caret is. On any page with text it lands on the first lines.

Fix (v4.6.2): place the menu at the caret. Measure the caret's position in the textarea with a hidden mirror element, then put the menu just under that line, keep it inside the pane horizontally, and flip it above the line when there isn't room below. Re-place it as the text box scrolls. Keep the current spot as the fallback where nothing can be measured. Test with the measurement stubbed.

**Found by the owner on prod (4.6.1), 2026-10-28.** Typing `[[Vel` at the end of the second line of a page opens the link menu (Velara · Settlement / Create "Vel…") over the top-left of the text box, covering the first lines and the word being typed. **Cause.** `.ed-ac` (`pages/wiki/Editor.css`) is absolutely positioned at a fixed spot, `left: var(--sp-3); top: var(--sp-5, 2.5rem)`, below the box's top edge, wherever the caret is. On any page with text it lands on the first lines. **Fix (v4.6.2):** place the menu at the caret. Measure the caret's position in the textarea with a hidden mirror element, then put the menu just under that line, keep it inside the pane horizontally, and flip it above the line when there isn't room below. Re-place it as the text box scrolls. Keep the current spot as the fallback where nothing can be measured. Test with the measurement stubbed.
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
rbrooks/Quest-Board#1261
No description provided.