fix: prevent iOS zoom on quick entry note

This commit is contained in:
openclaw 2026-08-16 11:14:11 +08:00
parent aa1d9b585c
commit 3c3a0f78d9
2 changed files with 4 additions and 1 deletions

View File

@ -1054,7 +1054,8 @@ input:focus-visible {
padding: 0 3px;
background: transparent;
color: #27332f;
font-size: 13px;
/* iOS Safari auto-zooms editable controls below 16px when focused. */
font-size: 16px;
}
.note-field input::placeholder {

View File

@ -23,6 +23,8 @@ test.describe("iOS 视口兼容性", () => {
await page.goto("/");
await page.getByRole("button", { name: "记一笔" }).click();
await expect(page.getByRole("region", { name: "快速记账" })).toBeVisible();
await page.getByLabel("备注").click();
await expect(page.getByLabel("备注")).toHaveCSS("font-size", "16px");
await expectNoHorizontalOverflow(page);
await context.close();
});