From b15bd455e3159342d410931885e875e0881df378 Mon Sep 17 00:00:00 2001 From: Xubin Ren <52506698+Re-bin@users.noreply.github.com> Date: Sat, 24 Oct 2026 22:31:39 +0800 Subject: [PATCH] fix(webui): soften thumbnail remove controls without shrinking touch targets --- webui/browser/composer-attachments.spec.ts | 3 ++- webui/src/components/thread/ThreadComposer.tsx | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/webui/browser/composer-attachments.spec.ts b/webui/browser/composer-attachments.spec.ts index 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.tsx index 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", )} > - - + +