Skip to content

fix(layout): padding issues on mobile devices for Main Page, Template Preview, and Footer #329

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

sahilkhan117
Copy link
Contributor

Closes #328

Summary:

  • Applied Ant Design's useBreakpoint() with screen.md to dynamically reduce padding on smaller screens.
  • Optimized the layout for:
    • Main Page → Reduced excessive padding for better content visibility.
    • Template Preview → Expanded the preview area by decreasing unnecessary whitespace.
    • Footer → Improved spacing and alignment to prevent stacking and hidden links.
  • Ensured the changes do not affect larger screens.

Changes

  • Applied Ant Design's useBreakpoint() hook to detect screen.md and apply responsive padding adjustments.
  • Reduced padding on smaller screens to enhance readability and maximize the viewable area.
  • Optimized layout for Main Page, Template Preview, and Footer by dynamically adjusting padding based on screen size.
  • Verified that the layout remains consistent on larger screens.
Template Preview Footer
image image

Tested on Devices:

  • Samsung Galaxy Z Fold 5
  • Samsung Galaxy S20 Ultra
  • Samsung Galaxy F13
  • Google Pixel 6 Pro
  • OnePlus 9 Pro
  • Xiaomi Mi 11 Ultra

Related Issues

Flags

  • This solution ensures that the reduced padding only applies to smaller screens, keeping the larger-screen layout unaffected.

Author Checklist:

  • DCO sign-off included
  • Verified on multiple devices
  • Ready for merging into main from fork:sahilkhan117/i328/fix-page-preview-footer-layout

@DianaLease can you please review my PR and Let me know if there is any changes or corrections regarding this problem.

@sahilkhan117 sahilkhan117 requested a review from a team as a code owner March 26, 2025 10:01
Copy link

netlify bot commented Mar 26, 2025

Deploy Preview for ap-template-playground ready!

Name Link
🔨 Latest commit 6e0c956
🔍 Latest deploy log https://app.netlify.com/sites/ap-template-playground/deploys/67e3d095aec16e00080ff773
😎 Deploy Preview https://deploy-preview-329--ap-template-playground.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@sahilkhan117 sahilkhan117 changed the title Sahilkhan117/i328/fix page preview footer layout fix(layout): padding issues on mobile devices for Main Page, Template Preview, and Footer Mar 26, 2025
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.

Layout: padding issues on mobile devices for Main Page, Template Preview, and Footer
1 participant