Skip to content

fix: mobile responsive layout for small screens (iPhone 13)#441

Merged
muke1908 merged 1 commit intomasterfrom
copilot/fix-chat-ui-responsiveness
Apr 3, 2026
Merged

fix: mobile responsive layout for small screens (iPhone 13)#441
muke1908 merged 1 commit intomasterfrom
copilot/fix-chat-ui-responsiveness

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 3, 2026

The chat UI was not usable on narrow viewports (~390px): the floating card layout wasted screen real estate, iOS safe areas were ignored, and tapping inputs triggered unwanted browser zoom.

Viewport & safe areas (index.html)

  • Added viewport-fit=cover to the meta viewport tag — required for env(safe-area-inset-*) to work on iOS notch/home-indicator devices

Dynamic viewport height (style.css)

  • Added height: 100dvh alongside the existing 100vh fallback so the layout tracks the browser chrome correctly when the iOS Safari URL bar shows/hides

Mobile media query @media (max-width: 480px)

  • Full-screen chat: removes #app padding; #chat-container goes edge-to-edge with no border-radius
  • Safe area insets: header pads for notch (safe-area-inset-top), footer pads for home bar (safe-area-inset-bottom)
  • Input zoom prevention: font-size: 16px on input — iOS Safari zooms the page for any input smaller than 16px
  • Message bubbles: max-width raised from 70% → 85% to better utilise narrow screens
  • Setup overlay: bottom-sheet pattern (align-items: flex-end, top-only border-radius) — standard iOS UX for modal entry flows
  • Tighter chrome: header, footer, and messages area padding reduced to reclaim vertical space; call avatar and large buttons scaled down proportionally

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Apr 3, 2026

@muke1908 muke1908 marked this pull request as ready for review April 3, 2026 10:36
@muke1908 muke1908 merged commit 5e0032d into master Apr 3, 2026
1 check passed
@muke1908 muke1908 deleted the copilot/fix-chat-ui-responsiveness branch April 3, 2026 10:36
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.

2 participants