fix(webui): reorder appearance settings and trim preview

This commit is contained in:
chengyongru authored and chengyongru committed 2026-11-12 17:23:14 +08:00
1 parent 0ce10533d3
commit c3403e6a6f
14 files changed
+31 -27

No files matched your search

+1 -1
View File
@@ -103,7 +103,7 @@ for (const width of [390, 1440]) for (const locale of ["en", "zh-CN"]) {
await page.goto(fixture("settings", "loaded", "&section=appearance"));
const target = page.locator('[data-settings-section="appearance"]');
const ready = async () => {
await expect(target.locator("[data-reading-preview-content] strong")).toBeVisible();
await expect(target.locator("[data-reading-preview-content] .markdown-content p").first()).toBeVisible();
await expect(target.locator("[data-reading-preview-content] .markdown-content p").first()).toHaveCSS("font-size", "24px");
await settle(page);
};