Skip to content

Fix mobile responsive layout for static page#15

Merged
sschonss merged 3 commits intomainfrom
copilot/fix-static-page-responsive-layout
Oct 31, 2025
Merged

Fix mobile responsive layout for static page#15
sschonss merged 3 commits intomainfrom
copilot/fix-static-page-responsive-layout

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Oct 31, 2025

The static HTML page lacked proper mobile optimization, causing poor UX on smartphones with excessive padding, oversized elements, and horizontal button layouts unsuitable for narrow screens.

Changes

Enhanced the @media (max-width: 768px) query with comprehensive mobile optimizations:

  • Spacing: Reduced body padding (2rem → 1rem) and header margin for better screen utilization
  • Layout: Single-column content grid with adjusted padding (1.5rem) and gaps
  • Buttons: Vertical stacking with full-width sizing for touch-friendly interaction
  • Form elements: 16px font-size on inputs to prevent iOS auto-zoom on focus
  • Preview section: Viewport-relative units (40vh/50vh) for scalable image display across device sizes
  • Talk items: Single-column grid with optimized spacing
@media (max-width: 768px) {
    body { padding: 1rem; }
    .button-group { 
        flex-direction: column;
        gap: 0.75rem;
    }
    button { width: 100%; }
    input, select, textarea { font-size: 16px; /* Prevents zoom on iOS */ }
    .image-preview { min-height: 40vh; }
}

Screenshots

Before (Mobile 375px)

Before

After (Mobile 375px)

After - Clean Layout

After - With Form Data

After - With Talk Item

Tablet (768px)

Tablet View

Original prompt

This section details on the original issue you should resolve

<issue_title>Layout responsivo no static</issue_title>
<issue_description>A página estática é feita com html css e js, porém ela não tem design responsivo para móbile

image

Ajustar essa tela para termos uma experiência agradável no celular</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits October 31, 2025 03:06
Co-authored-by: sschonss <82298137+sschonss@users.noreply.github.com>
Co-authored-by: sschonss <82298137+sschonss@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix static page layout for mobile responsiveness Fix mobile responsive layout for static page Oct 31, 2025
Copilot AI requested a review from sschonss October 31, 2025 03:09
@sschonss sschonss marked this pull request as ready for review October 31, 2025 03:36
@sschonss sschonss merged commit 716d1e2 into main Oct 31, 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 responsivo no static

2 participants