Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

Fix #2971: a tool call no longer widens the web page on phones (from PR #3156)

ctr-137ce938fb8c9a0
diff --git a/serve/web/app.css b/serve/web/app.css
index 0c75e60ee..66d96acde 100644
--- a/serve/web/app.css
+++ b/serve/web/app.css
@@ -4,7 +4,7 @@
html, body { height: 100%; }
body { display: flex; flex-direction: column; overflow: hidden; }
main { flex: 1; min-height: 0; display: flex; }
-.view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
+.view { flex: 1; min-height: 0; min-width: 0; display: flex; flex-direction: column; }
.view[hidden] { display: none; }
.muted { color: var(--st-ink-muted); }
.small { font-size: var(--st-fs-xs); }
@@ -53,8 +53,9 @@ main { flex: 1; min-height: 0; display: flex; }
font-size: var(--st-fs-md); }
/* MCP tool calls inside an answer: one compact collapsible block per call */
.st-bubble .tool-call { margin: var(--st-s-3) 0; }
-.tool-call > summary { min-width: 0; padding: 8px 12px; }
-.tool-call__name { font: 500 var(--st-fs-sm)/1.2 var(--st-font-mono); color: var(--st-ink); white-space: nowrap; }
+.tool-call > summary { min-width: 0; padding: 8px 12px; overflow: hidden; }
+.tool-call__name { font: 500 var(--st-fs-sm)/1.2 var(--st-font-mono); color: var(--st-ink); white-space: nowrap;
+ min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tool-call__preview { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--st-fs-xs); }
.tool-call .st-badge, .tool-call summary .small { flex: none; }
.tool-call[data-state="error"] { border-color: color-mix(in srgb, var(--st-danger) 35%, var(--st-line)); }
diff --git a/tests/terminal/test_issues_022.py b/tests/terminal/test_issues_022.py
index 136f722e7..c93f2644e 100644
--- a/tests/terminal/test_issues_022.py
+++ b/tests/terminal/test_issues_022.py
@@ -97,6 +97,26 @@ class Issue3403MacBuildTools(unittest.TestCase):
self.assertIn("S.ensure_build_tools()", inspect.getsource(fn), fn.__name__)
+class Issue2971WebToolRowFitsPhones(unittest.TestCase):
+ """A tool row widened the whole page on a phone (752 px page at a 412 px viewport, measured in Chrome). The three rules
+ that keep it inside the viewport; a long tool name is cut with an ellipsis instead of pushing the page."""
+
+ def test_the_rules_are_in_the_stylesheet(self):
+ import re
+ css = (Path(__file__).resolve().parents[2] / "serve" / "web" / "app.css").read_text(encoding="utf-8")
+
+ def rule(selector):
+ m = re.search(r"(?m)^" + re.escape(selector) + r"\s*\{([^}]*)\}", css)
+ self.assertIsNotNone(m, selector)
+ return m.group(1)
+
+ self.assertIn("min-width: 0", rule(".view"))
+ self.assertIn("overflow: hidden", rule(".tool-call > summary"))
+ name = rule(".tool-call__name")
+ for part in ("min-width: 0", "overflow: hidden", "text-overflow: ellipsis"):
+ self.assertIn(part, name)
+
+
class Issue3188BenchStartsItsOwnServer(unittest.TestCase):
"""tools/strata_bench.py named `port` in the start-a-server branch without ever setting it."""