fix: mobile responsive layout for small screens (iPhone 13)#441
Merged
fix: mobile responsive layout for small screens (iPhone 13)#441
Conversation
Agent-Logs-Url: https://github.com/muke1908/chat-e2ee/sessions/e498c114-7c02-4727-a09a-6f8e91c3d39e Co-authored-by: muke1908 <20297989+muke1908@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
muke1908
April 3, 2026 10:36
View session
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



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)viewport-fit=coverto the meta viewport tag — required forenv(safe-area-inset-*)to work on iOS notch/home-indicator devicesDynamic viewport height (
style.css)height: 100dvhalongside the existing100vhfallback so the layout tracks the browser chrome correctly when the iOS Safari URL bar shows/hidesMobile media query
@media (max-width: 480px)#apppadding;#chat-containergoes edge-to-edge with no border-radiussafe-area-inset-top), footer pads for home bar (safe-area-inset-bottom)font-size: 16pxoninput— iOS Safari zooms the page for any input smaller than 16pxmax-widthraised from 70% → 85% to better utilise narrow screensalign-items: flex-end, top-only border-radius) — standard iOS UX for modal entry flows