Skip to content

Fix background exposure issue in mobile view (#257)#348

Open
alok-108 wants to merge 3 commits intom2b3:mainfrom
alok-108:fix/mobile-background-issue
Open

Fix background exposure issue in mobile view (#257)#348
alok-108 wants to merge 3 commits intom2b3:mainfrom
alok-108:fix/mobile-background-issue

Conversation

@alok-108
Copy link
Copy Markdown

Problem

Background was not fully covering screen in mobile view when bottom drawer was open.

Root Cause

The root cause was the vaul-drawer-wrapper scaling down on mobile while the underlying body and html backgrounds were set to white/near-white. This revealed the background gaps in light mode.

Solution

  • Set html and body background to bg-black in src/app/layout.tsx.
    • Enabled body styling in src/hooks/useScaleBackground.ts by setting noBodyStyles = false.

Testing

Verified in mobile view simulation; the background now remains dark during the scale transition, providing a professional depth effect without white gaps.

@alok-108
Copy link
Copy Markdown
Author

Hi, I noticed a previous PR (#258) addressed a similar issue. I have reworked the solution and tested it for consistent behavior across different mobile screen sizes.

Please let me know if further improvements are needed.

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