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): soften thumbnail remove controls without shrinking touch targets
Xubin Renb15bd455e315
diff --git a/webui/browser/composer-attachments.spec.ts b/webui/browser/composer-attachments.spec.tsindex 08a1760f5..b3ac37250 100644--- a/webui/browser/composer-attachments.spec.ts+++ b/webui/browser/composer-attachments.spec.ts@@ -72,7 +72,8 @@ for (const { width, dark, variant } of [await testInfo.attach("composer-attachments", { path: screenshot, contentType: "image/png" });const whiteRemove = chips.filter({ has: page.getByRole("img", { name: "white.png", exact: true }) }).getByRole("button");- if (width < 640) await whiteRemove.tap();+ // Tap outside the visible circle, but inside the larger touch target.+ if (width < 640) await whiteRemove.tap({ position: { x: 6, y: 22 } });else await whiteRemove.click();await expect(chips).toHaveCount(3);const darkRemove = chips.filter({ has: page.getByRole("img", { name: "dark.png", exact: true }) }).getByRole("button");diff --git a/webui/src/components/thread/ThreadComposer.tsx b/webui/src/components/thread/ThreadComposer.tsxindex 1cd4d80ce..b80d92e4b 100644--- a/webui/src/components/thread/ThreadComposer.tsx+++ b/webui/src/components/thread/ThreadComposer.tsx@@ -3479,8 +3479,8 @@ function AttachmentChip({: "ml-1 h-5 w-5 text-muted-foreground/80 hover:text-foreground focus-visible:ring-foreground/30",)}>- <span className={cn(isThumbnail && "grid h-6 w-6 place-items-center rounded-full bg-black/65 text-white group-hover/remove:bg-black/80")}>- <X className="h-3.5 w-3.5" aria-hidden />+ <span className={cn(isThumbnail && "grid h-5 w-5 place-items-center rounded-full bg-black/65 text-white group-hover/remove:bg-black/80")}>+ <X className={isThumbnail ? "h-3 w-3" : "h-3.5 w-3.5"} aria-hidden /></span></button></div>