DEV Community

Cover image for tablet-qa: an open-source skill for checking iPad layouts
Julia
Julia

Posted on Edited on

tablet-qa: an open-source skill for checking iPad layouts

tablet-qa is a tablet layout QA skill for Claude Code and Codex, based on a review process I used repeatedly and refined while working on a multilingual client website.

I'm a designer and PM. A few weeks ago a client told us they'd review their new website on an iPad. We had desktop and phone designs, but nothing for tablets.

I put together a process for checking the tablet layouts: Claude Code measured each page at iPad viewport sizes, and I reviewed the screenshots and decided what needed fixing. For each change, I had it capture the same area before and after. I later turned that process into tablet-qa and published it on GitHub:

https://github.com/jujuliac/tablet-qa

I'm sharing it because I couldn't find many public tools for checking website layouts at iPad or other specific viewport sizes from a designer's or PM's point of view. If you're in a similar spot, I hope it helps.

The client site is confidential, so I've redrawn the examples as diagrams, keeping the recorded dimensions and counts.

What it does

You give Claude Code (or Codex) a URL and say what you want checked:

/tablet-qa first check, home and product pages at http://localhost:3000
Enter fullscreen mode Exit fullscreen mode

01 Check, 02 You decide, 03 Before / after (only if you fix), 04 You review

The skill then:

  1. Measures. It opens each page in Chrome through Playwright at iPad sizes, with touch emulation on, and scrolls to the bottom. It flags possible overflow, clipped text, tap targets under 44 px, sizes that jump 1 px either side of a breakpoint, and text that stops fitting in other languages. Every flag comes with a screenshot.
  2. Leaves the review to you. You review the screenshots and decide which flagged items need fixing.
  3. Captures before-and-after screenshots. For each fix, it captures the same area before and after the change and places the screenshots side by side. For me, looking at before-and-after images is the quickest way to assess a change: I can see what changed and how it turned out at a glance.
  4. Checks again after changes. After a merge or another change, it captures those areas again for comparison with the version you approved.

The skill handles the checks. You decide whether to ask the coding agent to implement fixes as part of the task.

On the client project, an AI agent ran the measurements and wrote the fixes, which went to the developer as pull requests. I decided what counted as a problem and reviewed each change.

What I found on the client project

The site is content-heavy and multilingual: lots of photos and long text. The first pass covered 25 page URLs at 5 iPad sizes, 125 combinations. Some pages returned server errors, so I couldn't complete their layout review in that pass.

No overflow, but plenty to fix

None of the 125 combinations showed horizontal overflow.

Over the next few rounds, the list grew to 62 items, including 9 involving tap targets under 44 px. Reviewing the screenshots also revealed layouts that fit on screen but looked like stretched phone pages:

  • a card 700 px wide with its text in the left half
  • a text column 145 px wide, 7 characters a line, the last line a single character
  • a 654 × 912 px book cover taking up most of the screen on its own

Three layouts with no overflow: a 700 px card with text in the left half, a 145 px text column ending in one character, and a 654 × 912 px cover.

The screenshots made these problems visible. I included screenshot review in the skill, with notes on spotting stretched phone layouts and deciding when empty space is appropriate.

The iPad mini was getting the phone layout

The site's tablet layout started at Tailwind's default md breakpoint, 768 px. The iPad mini viewport we tested was 744 px wide in portrait, so every page used the phone layout. One card grid showed 2 cards per row, compared with 5 on the iPad Air.

Same page at 744 px and 820 px: 2 stretched cards per row versus 5 per row.

A side note: Chrome DevTools' built-in "iPad Mini" preset is the old 768 × 1024 model, so it hides this exact problem. The skill's size table uses 744 × 1133.

We moved the tablet layout to start at 744. A second pass, section by section, still found 37 more items, mostly between 744 and 1023 px.

A fix can move the jump somewhere else

To fit more covers on a wide iPad, we changed a publications page from 2 per row to 3 per row starting at 1024 px. It looked fine at 1180. Side by side at 1023 and 1024, though:

  • 1023 px: 2 covers per row, 436 px wide each
  • 1024 px: 3 covers per row beside a sidebar, 144 px wide each

At 1023 px, 2 covers 436 px wide. At 1024 px, 3 covers 144 px wide beside a sidebar.

The 12.9-inch iPad Pro viewport in our test was 1024 px wide in portrait, right at that breakpoint. I chose to keep 2 covers per row below 1180 px and use 3 from there. The skill checks each breakpoint and the widths 1 px below and above it, including 743/744/745 and 1023/1024/1025.

Text fitting on a multilingual site

The multilingual pages shared a layout, but text length and line breaks caused different problems. At 744 px, a sound toggle overlapped the page title by 17 px, while shorter labels fit. A longer navigation label overlapped the centered logo between 1024 and 1366 px. I also found words split across lines and single characters left on the last line of paragraphs and card titles.

At 744 px, a longer sound-toggle label overlaps the page title; shorter labels fit.

A long nav label overlapping the logo, a word split across two lines, and a single character on the last line.

The client's iPad also runs an older Safari without text-wrap: pretty, which was our first fix for those line breaks. On the page where it showed most, Claude Code switched to this CSS, and I had it re-measure at 11 widths from 375 to 1440 px:

word-break: keep-all;      /* CJK text breaks only at spaces and punctuation */
overflow-wrap: anywhere;   /* long strings without punctuation can still wrap */
Enter fullscreen mode Exit fullscreen mode

The skill includes checks across languages and viewport sizes.

A merge brought the old layout back

We fixed the tablet layout on an events calendar page, and I approved it. Two days later, at the final review, it was back to the stretched phone layout. A later merge of another branch for the same page had overwritten 38 tablet settings across 6 files.

Approved layout, the phone layout after the merge, and the layout after it was fixed again.

After the fix, I compared new screenshots of the same areas with the version I'd approved. The layouts matched, and I approved the page again. The skill uses this comparison for regression checks.

What it doesn't decide

Some flags I chose to leave alone:

  • Three booking cards in one column with space on the right. 3 columns at 744 px made each card 230 px wide, too cramped.
  • A one-item-per-line category list with space beside it. The categories and the list below aren't the same level, so they shouldn't sit side by side.
  • A stat card whose number sat 10 px higher than its neighbours at 744 px. The numbers lined up at the client's 810 px portrait width, so I left it unchanged.

The booking cards kept in one column, next to the 3-column version I tried, with each card 230 px wide.

You can record decisions like these in the skill's config file, so the next run doesn't flag them again.

Try it

I use it daily on macOS with Chrome, mostly in Claude Code.

You'll need Node.js 20+, Chrome, and Playwright in the project you're testing (npm i -D playwright). On Linux, install a CJK font such as Noto Sans CJK before running the checks. Without one, Chinese text renders as boxes and measurements can be wrong without any error reported.

git clone https://github.com/jujuliac/tablet-qa.git ~/.claude/skills/tablet-qa
Enter fullscreen mode Exit fullscreen mode

Open a new Claude Code conversation in your site's project and give it a URL, as in the example at the top. For Codex, clone it to ~/.agents/skills/tablet-qa and start with "Use the tablet-qa skill to…".

You can also try the demo page in the repo. It has a version with layout problems and a fixed version, which produce this comparison image:

Before/after comparison image generated from the repo's demo page.

Test coverage

GitHub Actions tests pass on Linux, Windows and macOS. They cover unit tests and check the demo page against expected findings in Google Chrome, Playwright's bundled Chromium and Playwright WebKit. On GitHub's macOS runner, a wider font left one word on the second line of a demo card description at 1024 px, which the skill flagged as a short last line. CI records font-dependent line breaks as notes, while overflow, clipped text and small tap targets must match across systems.

I also checked the demo page in iPadOS Safari in the Xcode simulator. The measurements matched, except for viewport height because of Saftablet-qa: an open-source skill for checking iPad layoutsari's toolbars.

The two scripts are plain Node + Playwright, so they also run without an AI assistant.

Limits

  • It simulates iPad sizes in desktop Chrome, which isn't Safari on a real iPad. Address bar height, low-power mode and how scrolling feels still need a real device.
  • I've used it on one real project, a content-heavy site. Forms, e-commerce and dashboards will raise problems I haven't written rules for yet.
  • The skill's rules and report files are in Traditional Chinese. Before-and-after images default to Chinese labels, with English available via compareLang: "en". The AI presents selected findings in your language.
  • I've only used it on real sites on macOS.

If you try it, I'd love to hear which sizes you checked and what it flagged that wasn't a real problem. Issues are open on GitHub.

Top comments (0)