Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
fix(webui): reuse touch targets for composer mentions
Xubin Ren2e334b2250fc
diff --git a/docs/webui.md b/docs/webui.mdindex 013b30440..24f2a78d5 100644--- a/docs/webui.md+++ b/docs/webui.md@@ -192,7 +192,8 @@ On touch devices with Visual Viewport support, the app follows the visible areawhen the on-screen keyboard opens or pans the page. Navigation and the composerstay in view while messages scroll independently. The `@` mention and `/` commandmenus use the visible app area above or below the composer, including when the-keyboard pans the page. Scroll within a menu to reach more results.+keyboard pans the page. Scroll within a menu to reach more results. Mention rows+use the app's larger touch targets on phones while retaining desktop density.In very short viewports (suchas landscape with the keyboard open), scroll within the composer to reach itscontrols. If the browser bars and keyboard leave no usable page area, dismissdiff --git a/webui/src/components/thread/ThreadComposer.tsx b/webui/src/components/thread/ThreadComposer.tsxindex 44bf53b7d..92fb23968 100644--- a/webui/src/components/thread/ThreadComposer.tsx+++ b/webui/src/components/thread/ThreadComposer.tsx@@ -3111,7 +3111,7 @@ function CliAppMentionPalette({}}className={cn(floatingItemClassName,- "flex min-h-10 w-full items-center gap-2.5 px-2.5 py-1.5 text-left transition-colors",+ "touch-target flex min-h-10 w-full items-center gap-2.5 px-2.5 py-1.5 text-left transition-colors",selected? "bg-foreground/[0.055] text-foreground": "text-foreground/90 hover:bg-foreground/[0.04]",diff --git a/webui/src/tests/thread-composer.test.tsx b/webui/src/tests/thread-composer.test.tsxindex 4eee8b8ca..6d5636dd5 100644--- a/webui/src/tests/thread-composer.test.tsx+++ b/webui/src/tests/thread-composer.test.tsx@@ -2436,6 +2436,9 @@ describe("ThreadComposer", () => {expect(screen.queryByText("MCP servers")).not.toBeInTheDocument();const gimp = screen.getByRole("option", { name: /GIMP @gimp .* CLI/i });const browserbase = screen.getByRole("option", { name: /Browserbase @browserbase .* MCP/i });+ // Reuse the app's 44px coarse-pointer targets without changing desktop density.+ expect(gimp).toHaveClass("touch-target");+ expect(browserbase).toHaveClass("touch-target");expect(within(gimp).getByText("CLI")).toBeInTheDocument();expect(within(browserbase).getByText("MCP")).toBeInTheDocument();expect(within(gimp).getByText("@gimp")).toBeInTheDocument();