feat(webui): redesign goal island as floating vibrancy platter (#6737)

This commit is contained in:
chengyongru authored and GitHub committed 2026-11-20 18:43:34 +08:00
1 parent 16e573fe18
commit db0306b404
4 files changed
+250 -117

No files matched your search

+1 -1
View File
@@ -218,7 +218,7 @@ for (const width of [320, 390, 1440]) for (const dark of [false, true]) {
const body = getComputedStyle(el.querySelector(".goal-island-document p")!);
return { title: Number.parseFloat(title.fontSize), body: Number.parseFloat(body.fontSize), titleFont: title.fontFamily, bodyFont: body.fontFamily };
});
expect(typography.title).toBeCloseTo(typography.body * 1.5, 1);
expect(typography.title).toBeGreaterThan(typography.body);
expect(typography.titleFont).toBe(typography.bodyFont);
const scrollBody = page.locator(".goal-island-body");
expect(await scrollBody.evaluate(el => el.scrollHeight > el.clientHeight)).toBe(true);