[GH-ISSUE #2971] [GUI] Web app: page overflows sideways on phones when a tool call appears #1195

Closed
opened 2026-11-04 01:49:16 +07:00 by bsakaguchi · 9 comments
Owner

Originally created by @TitanMamo on GitHub (Oct 17, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2971

Area

[GUI] - the web app (the phone/browser UI served by the engine, serve/web)

Desktop app, Terminal or source?

Source (the web app served by the engine; re-tested on the v0.2.0-beta web assets)

What happened

On a phone (412 px viewport) the web app's page grows wider than the screen as soon as a tool call appears in an answer: document.documentElement.scrollWidth is 770 where the viewport is 412. Content spills off-screen - the tool row's name/preview run past the right edge, and the header renders at the viewport width while everything below it is laid out wider.

Smallest steps or command that reproduce it

A page with the 0.2.0-beta serve/web/app.css and the exact DOM toolHtml() renders (.st-msg .st-bubble > details.st-collapse.tool-call > summary with .tool-call__name, .tool-call__preview, badges), opened at a 412 px viewport.

Expected: the page stays at the viewport width (scrollWidth 412).
Actual: scrollWidth 770 on the 0.2.0-beta CSS (same on 0.1.45).

Reproduction status

Reproduced locally: 0.2.0-beta web assets, static reproduction of the tool row (headless browser, 412 px viewport). The live app on 0.1.45 showed the same behavior in a real session (MCP web-search tool call).

Strata version

0.2.0-beta (engine 0.1.45.3) - re-tested on the v0.2.0-beta web assets

Graphics card, memory and system

NVIDIA RTX 3060 12 GB; 31 GB RAM; Void Linux (kernel 6.18); phone viewport 412 px (Chrome)

Model, size and settings

Any model; the tool row appears for MCP tool calls (e.g. the firecrawl web search)

Evidence

Headless measurement at a 412 px viewport, 0.2.0-beta app.css:

scrollWidth
0.2.0-beta as-is 770 (overflows)
+ .view { min-width: 0 }, .tool-call > summary { overflow: hidden }, .tool-call__name { min-width: 0; overflow: hidden; text-overflow: ellipsis } 412 (fits)

Root cause (unchanged in 0.2.0-beta):

  1. .view is a flex item of main { display: flex; } and keeps the default min-width: auto, so its min-content - raised by the white-space: nowrap tool name - makes the whole panel and the page wider than the viewport.
  2. .tool-call > summary has min-width: 0 but no overflow: hidden.
  3. .tool-call__name has white-space: nowrap without min-width: 0; overflow: hidden; text-overflow: ellipsis.

(The preview already has that treatment.)

@ctr-137's PR #3156 carries exactly these three rules for this issue.

Originally created by @TitanMamo on GitHub (Oct 17, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/2971 ### Area [GUI] - the web app (the phone/browser UI served by the engine, `serve/web`) ### Desktop app, Terminal or source? Source (the web app served by the engine; re-tested on the v0.2.0-beta web assets) ### What happened On a phone (412 px viewport) the web app's page grows wider than the screen as soon as a tool call appears in an answer: `document.documentElement.scrollWidth` is 770 where the viewport is 412. Content spills off-screen - the tool row's name/preview run past the right edge, and the header renders at the viewport width while everything below it is laid out wider. ### Smallest steps or command that reproduce it A page with the 0.2.0-beta `serve/web/app.css` and the exact DOM `toolHtml()` renders (`.st-msg .st-bubble > details.st-collapse.tool-call > summary` with `.tool-call__name`, `.tool-call__preview`, badges), opened at a 412 px viewport. Expected: the page stays at the viewport width (`scrollWidth` 412). Actual: `scrollWidth` 770 on the 0.2.0-beta CSS (same on 0.1.45). ### Reproduction status Reproduced locally: 0.2.0-beta web assets, static reproduction of the tool row (headless browser, 412 px viewport). The live app on 0.1.45 showed the same behavior in a real session (MCP web-search tool call). ### Strata version 0.2.0-beta (engine 0.1.45.3) - re-tested on the v0.2.0-beta web assets ### Graphics card, memory and system NVIDIA RTX 3060 12 GB; 31 GB RAM; Void Linux (kernel 6.18); phone viewport 412 px (Chrome) ### Model, size and settings Any model; the tool row appears for MCP tool calls (e.g. the firecrawl web search) ### Evidence Headless measurement at a 412 px viewport, 0.2.0-beta `app.css`: | | scrollWidth | | --- | --- | | 0.2.0-beta as-is | 770 (overflows) | | + `.view { min-width: 0 }`, `.tool-call > summary { overflow: hidden }`, `.tool-call__name { min-width: 0; overflow: hidden; text-overflow: ellipsis }` | 412 (fits) | Root cause (unchanged in 0.2.0-beta): 1. `.view` is a flex item of `main { display: flex; }` and keeps the default `min-width: auto`, so its min-content - raised by the `white-space: nowrap` tool name - makes the whole panel and the page wider than the viewport. 2. `.tool-call > summary` has `min-width: 0` but no `overflow: hidden`. 3. `.tool-call__name` has `white-space: nowrap` without `min-width: 0; overflow: hidden; text-overflow: ellipsis`. (The preview already has that treatment.) @ctr-137's PR #3156 carries exactly these three rules for this issue.
Author
Owner

@CC-David-CC commented on GitHub (Oct 17, 2026):

can confirm your issue and your suggested fix

<!-- gh-comment-id:6241620770 --> @CC-David-CC commented on GitHub (Oct 17, 2026): can confirm your issue and your suggested fix
Author
Owner

@intdev32 commented on GitHub (Oct 18, 2026):

This is an issue that reproduces immediately just by playing around in Strata web's Chat on my phone while lying in bed. It's quite inconvenient that it still hasn't been fixed yet.

@TitanMamo Thanks for reporting this issue.

<!-- gh-comment-id:6244833777 --> @intdev32 commented on GitHub (Oct 18, 2026): This is an issue that reproduces immediately just by playing around in Strata web's Chat on my phone while lying in bed. It's quite inconvenient that it still hasn't been fixed yet. @TitanMamo Thanks for reporting this issue.
Author
Owner

@CC-David-CC commented on GitHub (Oct 18, 2026):

Wait people actually use the web app for more than quick tests?

Oh man now I feel bad. I need to fix my version of the web app and see if main wants

<!-- gh-comment-id:6245631654 --> @CC-David-CC commented on GitHub (Oct 18, 2026): Wait people actually use the web app for more than quick tests? Oh man now I feel bad. I need to fix my version of the web app and see if main wants
Author
Owner

@ctr-137 commented on GitHub (Oct 19, 2026):

Opened #3156 with this fix — the two rules from your analysis: .view gets min-width: 0, the tool summary clips, and .tool-call__name ellipsizes. Reproduced the 752 px scrollWidth at 412 px on current main, and measured it back at the viewport after the change (412/390/1680). Thanks for the exact root cause and patch.

<!-- gh-comment-id:6265172604 --> @ctr-137 commented on GitHub (Oct 19, 2026): Opened #3156 with this fix — the two rules from your analysis: `.view` gets `min-width: 0`, the tool summary clips, and `.tool-call__name` ellipsizes. Reproduced the 752 px scrollWidth at 412 px on current `main`, and measured it back at the viewport after the change (412/390/1680). Thanks for the exact root cause and patch.
Author
Owner

@Niko1221 commented on GitHub (Oct 19, 2026):

Thanks for taking the time to report this.

We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6271392893 --> @Niko1221 commented on GitHub (Oct 19, 2026): Thanks for taking the time to report this. We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.0-beta. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Author
Owner

@TitanMamo commented on GitHub (Oct 19, 2026):

/reopen

<!-- gh-comment-id:6271530174 --> @TitanMamo commented on GitHub (Oct 19, 2026): /reopen
Author
Owner

@github-actions[bot] commented on GitHub (Oct 19, 2026):

Not reopened yet. Still missing:

  • Fill in "Area".
  • Fill in "Desktop app, Terminal or source?".
  • Fill in "Reproduction status".
  • Fill in "Strata version".
  • Fill in "Graphics card, memory and system".

Edit the issue and comment /reopen again. Details: CONTRIBUTING.md

<!-- gh-comment-id:6271533102 --> @github-actions[bot] commented on GitHub (Oct 19, 2026): Not reopened yet. Still missing: - [ ] Fill in "Area". - [ ] Fill in "Desktop app, Terminal or source?". - [ ] Fill in "Reproduction status". - [ ] Fill in "Strata version". - [ ] Fill in "Graphics card, memory and system". Edit the issue and comment `/reopen` again. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@TitanMamo commented on GitHub (Oct 19, 2026):

/reopen

<!-- gh-comment-id:6271576468 --> @TitanMamo commented on GitHub (Oct 19, 2026): /reopen
Author
Owner

@github-actions[bot] commented on GitHub (Oct 19, 2026):

Reopened, thank you. A maintainer will pick it up from here.

<!-- gh-comment-id:6271579649 --> @github-actions[bot] commented on GitHub (Oct 19, 2026): Reopened, thank you. A maintainer will pick it up from here.
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#1195
No description provided.