mirror of
https://github.com/openclaw/clawhub.git
synced 2026-08-14 00:47:57 +00:00
fix: improve mobile detail tab targets
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
|
||||
### Fixes
|
||||
|
||||
- Web: keep skill/plugin detail tabs at mobile-friendly touch target height.
|
||||
|
||||
## 0.15.0 - 2026-05-12
|
||||
|
||||
### Changes
|
||||
|
||||
@@ -52,7 +52,7 @@ test("known public skill detail links to owner profile", async ({ page, request
|
||||
|
||||
const errors = trackRuntimeErrors(page);
|
||||
await page.goto(`/${ownerHandle}/${slug}`, { waitUntil: "domcontentloaded" });
|
||||
const ownerLink = page.locator(".user-handle").first();
|
||||
const ownerLink = page.locator(`a[href="/p/${ownerHandle}"]`).first();
|
||||
|
||||
await expect(ownerLink).toHaveAttribute("href", new RegExp(`/p/${ownerHandle}$`));
|
||||
await ownerLink.click();
|
||||
|
||||
@@ -86,7 +86,7 @@ test("skill detail page has no horizontal overflow on mobile", async ({ page, re
|
||||
);
|
||||
|
||||
await page.goto(`/${ownerHandle}/${slug}`, { waitUntil: "domcontentloaded" });
|
||||
await expect(page.getByRole("heading", { name: payload.skill!.displayName! })).toBeVisible();
|
||||
await expect(page.locator("h1.skill-page-title")).toHaveText(payload.skill!.displayName!);
|
||||
|
||||
const scrollWidth = await page.evaluate(() => document.documentElement.scrollWidth);
|
||||
const clientWidth = await page.evaluate(() => document.documentElement.clientWidth);
|
||||
@@ -112,8 +112,8 @@ test("detail tabs are scrollable and touch-friendly on mobile", async ({ page, r
|
||||
await page.goto(`/${ownerHandle}/${slug}`, { waitUntil: "domcontentloaded" });
|
||||
|
||||
// All standard tabs should be accessible (even if scrolled)
|
||||
for (const tabName of ["README", "Files", "Versions"]) {
|
||||
const tab = page.getByRole("button", { name: tabName });
|
||||
for (const tabName of ["SKILL.md", "Files", "Versions"]) {
|
||||
const tab = page.getByRole("tab", { name: tabName });
|
||||
await tab.scrollIntoViewIfNeeded();
|
||||
await expect(tab).toBeVisible();
|
||||
|
||||
|
||||
+1
-1
@@ -5470,7 +5470,7 @@ code {
|
||||
font-weight: 600;
|
||||
color: var(--ink-soft);
|
||||
cursor: pointer;
|
||||
min-height: 36px;
|
||||
min-height: 44px;
|
||||
white-space: nowrap;
|
||||
flex-shrink: 0;
|
||||
transform: translateY(1px);
|
||||
|
||||
Reference in New Issue
Block a user