Skip to content

feat(UI): Differentiate tablet UI based on pointer capabilities#1482

Merged
jelveh merged 2 commits intoHeyPuter:mainfrom
tarunsaini04:main
Sep 10, 2025
Merged

feat(UI): Differentiate tablet UI based on pointer capabilities#1482
jelveh merged 2 commits intoHeyPuter:mainfrom
tarunsaini04:main

Conversation

@tarunsaini04
Copy link
Copy Markdown
Contributor

Closes #1474

This PR fixes the issue where iPads were being served a mobile UI. The root cause is that all devices with the device-tablet class received the mobile layout, which is unsuitable for tablets used with a mouse/trackpad.

The solution is to differentiate tablets based on their input method using the (hover: hover) media query.
->Tablets that support hover (i.e., have a mouse) will now receive the device-desktop UI.
->Touch-only tablets will continue to receive the existing device-tablet (mobile) UI.

This ensures all users get the appropriate experience. The fix has been verified using browser developer tools to confirm the correct UI is served for iPads, iPhones, and desktops without regressions.

tarunsaini04 and others added 2 commits September 4, 2025 19:06
Reclassifies tablets with a mouse/trackpad to use the desktop UI.

This is detected by checking for `(hover: hover)` media query capabilities. This ensures that touch-only tablets retain their original, touch-friendly mobile UI while fixing the bug for users with pointer devices.
@jelveh jelveh merged commit fb04c55 into HeyPuter:main Sep 10, 2025
4 checks 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.

Bug: iPadOS is falsely considered a mobile OS.

2 participants