Skip to content

feat(loading-skeleton): constrain height and preserve clickability on mobile - #352

Open
otsimaofficial wants to merge 1 commit into
Goldii-locks:mainfrom
otsimaofficial:feat/loading-skeleton-mobile-279
Open

feat(loading-skeleton): constrain height and preserve clickability on mobile#352
otsimaofficial wants to merge 1 commit into
Goldii-locks:mainfrom
otsimaofficial:feat/loading-skeleton-mobile-279

Conversation

@otsimaofficial

Copy link
Copy Markdown

Problem & Goal

On short mobile viewports, LoadingSkeleton's unconstrained height could push surrounding controls (role filters, pagination) far off-screen while a job's details were loading.

Changes

  • Wrapped the skeleton content in a new data-testid="loading-skeleton-mobile-wrapper" div: max-h-[70vh] overflow-y-auto overscroll-contain on mobile, sm:max-h-none to lift the cap on larger screens — it scrolls internally instead of growing the page.
  • Confirmed (and now test-covered) that the skeleton never uses fixed/absolute positioning, so it can't trap pointer events on other elements.

Testing

  • New __tests__/loading-skeleton-mobile.test.tsx (5 tests): height cap + scroll classes, the sm:max-h-none breakpoint, overscroll-contain, no fixed/absolute positioning, and — rendering the real Dashboard with a never-resolving fetch so the skeleton stays visible — that the role-filter buttons remain enabled and clickable while it's shown.
  • npx tsc --noEmit, the new test file, and npm run build all pass locally.

Note: npm run lint currently fails on this repo's main due to a pre-existing, unrelated react-hooks/set-state-in-effect error in SignatureTimeoutAlert.tsx (visible on the last several merged PRs' CI runs). That's fixed independently in a separate PR and isn't touched here.

Closes #279

🤖 Generated with Claude Code

… mobile

Cap the skeleton's height on small viewports and let it scroll
internally (overscroll-contain) instead of pushing surrounding
controls off-screen, while keeping the wrapper free of fixed/absolute
positioning so it never traps taps on other elements.

Closes Goldii-locks#279
@drips-wave

drips-wave Bot commented Aug 29, 2026

Copy link
Copy Markdown

@otsimaofficial Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

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.

Handle mobile viewports navigation styling in loading_spinner_skeleton

1 participant