fix(webui): soften thumbnail remove controls without shrinking touch targets
This commit is contained in:
1 parent
a39bb03d35
commit
b15bd455e3
2 files changed
+4
-3
No files matched your search
@@ -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");
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user