mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1567] [CLOSED] web: a long code line or a wide table scrolls inside its message instead of widening the page on phones #3537
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3537
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1567
Author: @Ismaaa
Created: 10/8/2026
Status: ❌ Closed
Base:
main← Head:web/mobile-wide-content📝 Commits (1)
d21df32web: a long code line or a wide table scrolls inside its message instead of widening the page on phones📊 Changes
1 file changed (+3 additions, -2 deletions)
View changed files
📝
serve/web/app.css(+3 -2)📄 Description
Summary
On a phone, a reply with a long code line or a wide table makes the whole chat wider than the screen. In iPhone Safari the page then zooms out and the layout breaks. With this change the code block and the table scroll sideways on their own, and the page keeps the screen's width.
What changed
serve/web/app.cssonly:.viewgetsmin-width: 0. It is a flex item, so by default it could not shrink below its widest content (apreline does not wrap). That widened the page..st-bubble tablebecomes a block withmax-width: 100%andoverflow-x: auto, so a wide table scrolls inside the message.Nothing else changes. On a wide screen, where the content already fits, the layout is the same as before.
Extra Notes
Tested on an iPhone in Safari with a real code reply. Also checked in a 375 px wide browser with a 100-character code line and a four-column table. Before the change the page was 752 px wide, after it 375 px, with the code and the table scrolling inside the message.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
--family swift#4676