[PR #1567] [CLOSED] web: a long code line or a wide table scrolls inside its message instead of widening the page on phones #3537

Closed
opened 2026-11-07 14:42:11 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • d21df32 web: 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.css only:

  • .view gets min-width: 0. It is a flex item, so by default it could not shrink below its widest content (a pre line does not wrap). That widened the page.
  • .st-bubble table becomes a block with max-width: 100% and overflow-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.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/1567 **Author:** [@Ismaaa](https://github.com/Ismaaa) **Created:** 10/8/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `web/mobile-wide-content` --- ### 📝 Commits (1) - [`d21df32`](https://github.com/Niko1221/Strata/commit/d21df324393c5776f60385efbbc4533ed9431539) web: 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) <details> <summary>View changed files</summary> 📝 `serve/web/app.css` (+3 -2) </details> ### 📄 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.css` only: - `.view` gets `min-width: 0`. It is a flex item, so by default it could not shrink below its widest content (a `pre` line does not wrap). That widened the page. - `.st-bubble table` becomes a block with `max-width: 100%` and `overflow-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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 14:42:11 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3537
No description provided.