Skip to content

Give tablets the touch layout too - #5

Merged
algometrix merged 1 commit into
mainfrom
fix/tablet-touch-ui
Jul 31, 2026
Merged

Give tablets the touch layout too#5
algometrix merged 1 commit into
mainfrom
fix/tablet-touch-ui

Conversation

@algometrix

Copy link
Copy Markdown
Owner

A tablet was falling through to the desktop layout. On an emulated iPad the
shipped site gives you a floating panel covering 26% of the screen, no
interface toggle at all, and the medium preset at pixel ratio 2 on a mobile
GPU.

The cause was my detection: it required a coarse pointer and a small
screen. The screen-size half was wrong. pointer: coarse already means the
primary pointer is a finger, which is exactly what makes hover text, keyboard
shortcuts and small hit targets useless, and it is false on a touchscreen
laptop with a mouse attached (any-pointer: coarse would be the query that
wrongly catches those). So that one query is the whole test.

Verified against the production build on four emulated devices:

Device touch layout panel on load toggle quality
iPhone 13 yes 5% shown low
iPad portrait yes 3% shown low
iPad landscape yes 5% shown low
Desktop 1440 no 14% hidden medium

🤖 Generated with Claude Code

The mobile check required a coarse pointer and a small screen, so a tablet
fell through to the desktop layout: a floating panel over a quarter of the
screen, no way to hide the interface without a keyboard, and a desktop
render budget (medium preset, pixel ratio 2) on a mobile GPU.

The screen-size half of the test was wrong. `pointer: coarse` already means
the primary pointer is a finger, which is the thing that makes hover text,
keyboard shortcuts and small hit targets useless, and it is false on a
touchscreen laptop with a mouse attached. That query alone is the test.

Verified against the production build on four emulated devices: phone,
tablet portrait, tablet landscape and desktop. The three touch devices get
the collapsed sheet (3 to 5 percent of the screen), the toggle button and
the low preset; the desktop is untouched.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@algometrix
algometrix merged commit 5859a43 into main Jul 31, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant