From 25066c967bfa3d97ce1622fe20fb8d9b6176e93c Mon Sep 17 00:00:00 2001 From: dotta Date: Thu, 26 Mar 2026 19:18:38 -0500 Subject: [PATCH] fix: clamp mention dropdown position to viewport on mobile The portal-rendered mention dropdown could appear off-screen on mobile devices. Clamp top/left to keep it within the viewport and cap width to 100vw - 16px. Co-Authored-By: Paperclip --- ui/src/components/MarkdownEditor.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/ui/src/components/MarkdownEditor.tsx b/ui/src/components/MarkdownEditor.tsx index 68469761..e04ceda2 100644 --- a/ui/src/components/MarkdownEditor.tsx +++ b/ui/src/components/MarkdownEditor.tsx @@ -564,8 +564,11 @@ export const MarkdownEditor = forwardRef {mentionActive && filteredMentions.length > 0 && createPortal(
{filteredMentions.map((option, i) => (