[PR #3156] [CLOSED] [GUI] web: a tool call no longer widens the page on phones (#2971) #4481

Closed
opened 2026-11-07 15:36:20 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/3156
Author: @ctr-137
Created: 10/19/2026
Status: ❌ Closed

Base: main ← Head: web-mobile-toolcall-overflow-2971


📝 Commits (1)

  • fa05c84 web: a tool call no longer widens the page on phones (#2971)

📊 Changes

1 file changed (+4 additions, -3 deletions)

View changed files

📝 serve/web/app.css (+4 -3)

📄 Description

What it changes

serve/web/app.css, three rules:

  • .view gets min-width: 0. As a flex item of main it otherwise keeps min-width: auto, so its min-content width — raised by a long nowrap tool name — makes the whole panel, and the page, wider than the viewport.
  • .tool-call > summary gets overflow: hidden.
  • .tool-call__name gets min-width: 0; overflow: hidden; text-overflow: ellipsis, so the name shrinks and ellipsizes instead of forcing the row wider.

The preview already had the same treatment.

What it leaves alone

Layout only: no markup, JS or API change, and the desktop layout is unchanged.

Validation

Environment: main @ 477ac13c, headless Edge (puppeteer-core) on Windows 11.

Headless Edge (puppeteer-core), the app's own tokens.css, components.css and app.css, and the tool-call markup from serve/web/app.js:

viewport before after
412×915 scrollWidth=752 412
390×844 752 390
1680×915 1680 1680

With a 442 px tool name, the name ellipsizes (client width 211 at 412 px, 189 at 390 px) and the page still fits; at 1680 px it is shown whole.

Reported by @TitanMamo in #2971, whose root-cause analysis and patch this follows.

🤖 Generated with Claude Code


🔄 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/3156 **Author:** [@ctr-137](https://github.com/ctr-137) **Created:** 10/19/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `web-mobile-toolcall-overflow-2971` --- ### 📝 Commits (1) - [`fa05c84`](https://github.com/Niko1221/Strata/commit/fa05c849dc1ddafe1e76016a67097a9a921fad30) web: a tool call no longer widens the page on phones (#2971) ### 📊 Changes **1 file changed** (+4 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `serve/web/app.css` (+4 -3) </details> ### 📄 Description ## What it changes `serve/web/app.css`, three rules: - `.view` gets `min-width: 0`. As a flex item of `main` it otherwise keeps `min-width: auto`, so its min-content width — raised by a long `nowrap` tool name — makes the whole panel, and the page, wider than the viewport. - `.tool-call > summary` gets `overflow: hidden`. - `.tool-call__name` gets `min-width: 0; overflow: hidden; text-overflow: ellipsis`, so the name shrinks and ellipsizes instead of forcing the row wider. The preview already had the same treatment. ## What it leaves alone Layout only: no markup, JS or API change, and the desktop layout is unchanged. ## Validation Environment: `main` @ `477ac13c`, headless Edge (puppeteer-core) on Windows 11. Headless Edge (puppeteer-core), the app's own `tokens.css`, `components.css` and `app.css`, and the tool-call markup from `serve/web/app.js`: | viewport | before | after | |---|---:|---:| | 412×915 | `scrollWidth=752` | `412` | | 390×844 | `752` | `390` | | 1680×915 | `1680` | `1680` | With a 442 px tool name, the name ellipsizes (client width 211 at 412 px, 189 at 390 px) and the page still fits; at 1680 px it is shown whole. Reported by @TitanMamo in #2971, whose root-cause analysis and patch this follows. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:36:20 +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#4481
No description provided.