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++
Web page: use wide windows and fit narrow screens (#3176)
Matthias Nottad1a310f5577
diff --git a/serve/web/app.css b/serve/web/app.cssindex f9bad8ccd..1191b0418 100644--- a/serve/web/app.css+++ b/serve/web/app.css@@ -15,12 +15,12 @@ main { flex: 1; min-height: 0; display: flex; }/* ---------------------------------------------------------------- chat */.chat-scroll { flex: 1; min-height: 0; overflow-y: auto; }-.chat { max-width: 860px; margin: 0 auto; padding: var(--st-s-8) var(--st-s-6) var(--st-s-6); display: flex;+.chat { max-width: min(100%, 1100px); margin: 0 auto; padding: var(--st-s-8) var(--st-s-6) var(--st-s-6); display: flex;flex-direction: column; gap: var(--st-s-6); }.chat-empty { margin: 12vh auto 0; text-align: center; }.chat-empty__title { font-weight: var(--st-fw-black); font-size: var(--st-fs-display); line-height: var(--st-lh-tight);letter-spacing: -.02em; }-.chat-empty__sub { margin-top: var(--st-s-3); color: var(--st-ink-muted); }+.chat-empty__sub { overflow-wrap: anywhere; margin-top: var(--st-s-3); color: var(--st-ink-muted); }.st-msg { width: 100%; }.st-msg--assistant { align-self: flex-start; }.st-msg--assistant .st-bubble { width: 100%; overflow-wrap: anywhere; }@@ -44,6 +44,7 @@ main { flex: 1; min-height: 0; display: flex; }.msg-images img { max-width: 220px; max-height: 180px; border-radius: var(--st-r-md); border: 1px solid var(--st-line); }.st-msg .st-collapse { width: 100%; }.st-collapse__body.thinking { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow-y: auto; }+.st-msg { min-width: 0; }.st-msg__meta .st-btn--icon { width: 28px; height: 28px; }.st-msg__meta .st-btn--icon .st-icon { width: 16px; height: 16px; }.cursor::after { content: ""; display: inline-block; width: 8px; height: 1.1em; margin-left: 2px; vertical-align: -3px;@@ -66,7 +67,7 @@ main { flex: 1; min-height: 0; display: flex; }border: 1px solid var(--st-line-soft); border-radius: var(--st-r-sm); }.composer-wrap { flex: none; padding: 0 var(--st-s-6) var(--st-s-6); }-.st-composer { max-width: 860px; margin: 0 auto; }+.st-composer { max-width: min(100%, 1100px); margin: 0 auto; }.st-composer textarea { max-height: 40vh; }.st-btn--send { width: 42px; padding: 0; }.composer-hint { font-size: var(--st-fs-xs); color: var(--st-ink-muted); margin-right: var(--st-s-2); font-variant-numeric: tabular-nums; }@@ -79,16 +80,17 @@ main { flex: 1; min-height: 0; display: flex; }/* ---------------------------------------------------------------- monitor */.view--monitor, .view--about { overflow-y: auto; }-.monitor, .about { max-width: 1240px; width: 100%; margin: 0 auto; padding: var(--st-s-6); display: flex; flex-direction: column;+.monitor, .about { max-width: min(100%, 1920px); width: 100%; margin: 0 auto; padding: var(--st-s-6); display: flex; flex-direction: column;gap: var(--st-s-5); }.state-card { display: flex; flex-direction: column; gap: var(--st-s-3); }.state-card__head { display: flex; align-items: center; gap: var(--st-s-4); flex-wrap: wrap; }+.state-card, .metric-card, .req-card, .ctx-card, .cc-card, .mcp-card { min-width: 0; }.badges { display: flex; gap: var(--st-s-2); flex-wrap: wrap; }.badges .st-badge { opacity: .38; transition: opacity var(--st-dur); }.badges .st-badge.on { opacity: 1; }.state-card__row { display: flex; justify-content: space-between; gap: var(--st-s-4); font-size: var(--st-fs-sm);font-weight: var(--st-fw-medium); font-variant-numeric: tabular-nums; }-.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--st-s-4); }+.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--st-s-4); }.metric-card { padding: var(--st-s-4) var(--st-s-5); }.st-metric__value small { font-size: var(--st-fs-md); font-weight: var(--st-fw-medium); color: var(--st-ink-muted); margin-left: 4px; }.st-metric__sub { font-size: var(--st-fs-xs); color: var(--st-ink-muted); font-variant-numeric: tabular-nums; min-height: 1em; }@@ -100,10 +102,10 @@ main { flex: 1; min-height: 0; display: flex; }.st-metric__spark .speed-prefill { color: color-mix(in srgb, var(--st-accent) 65%, black); }.st-metric__spark[data-tone="warn"] { color: var(--st-warn); }.st-metric__spark[data-tone="info"] { color: var(--st-info); }-.monitor-row { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2.4fr); gap: var(--st-s-4); }+.monitor-row { display: grid; grid-template-columns: minmax(min(260px, 100%), 1fr) minmax(0, 2.4fr); gap: var(--st-s-4); }.ctx-card { display: flex; flex-direction: column; gap: var(--st-s-2); }-.ctx-gauge { position: relative; width: 150px; height: 150px; margin: var(--st-s-2) auto var(--st-s-3); }-.ctx-gauge .st-gauge { width: 150px; height: 150px; }+.ctx-gauge { position: relative; width: 150px; max-width: 100%; aspect-ratio: 1; height: auto; margin: var(--st-s-2) auto var(--st-s-3); }+.ctx-gauge .st-gauge { width: 100%; height: 100%; }.ctx-gauge .st-gauge__fill { transition: stroke-dasharray 400ms var(--st-ease); }.ctx-gauge__label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;font-size: var(--st-fs-xs); }@@ -128,9 +130,9 @@ main { flex: 1; min-height: 0; display: flex; }.cc-note { margin: 0; }.cc-note:empty { display: none; }.mcp-card { display: flex; flex-direction: column; gap: var(--st-s-3); }-.cfg-form { display: grid; grid-template-columns: minmax(0, max-content) minmax(180px, 1fr); gap: var(--st-s-3) var(--st-s-4);+.cfg-form { display: grid; grid-template-columns: minmax(min(180px, 100%), max-content) minmax(0, 1fr); gap: var(--st-s-3) var(--st-s-4);align-items: center; }-.cfg-form label { font-size: var(--st-fs-sm); font-weight: var(--st-fw-medium); overflow-wrap: anywhere; }+.cfg-form label { overflow-wrap: anywhere; font-size: var(--st-fs-sm); font-weight: var(--st-fw-medium); }.cfg-form label code { font: 400 12px var(--st-font-mono); color: var(--st-ink-muted); display: block; }.cfg-form .st-input { height: 38px; width: 100%; max-width: 360px; min-width: 0; }.cfg-actions { display: flex; align-items: center; gap: var(--st-s-3); }@@ -142,7 +144,7 @@ main { flex: 1; min-height: 0; display: flex; }.mcp-note { margin: 0; }/* ---------------------------------------------------------------- about */-.about { max-width: 860px; }+.about { max-width: min(100%, 1100px); }.about .st-card { display: flex; flex-direction: column; gap: var(--st-s-3); }.about p { margin: 0; }.facts { display: grid; grid-template-columns: minmax(140px, max-content) 1fr; gap: 10px var(--st-s-6); margin: 0; font-size: var(--st-fs-md); }@@ -172,11 +174,13 @@ main { flex: 1; min-height: 0; display: flex; }/* ---------------------------------------------------------------- narrow screens */@media (max-width: 1000px) {.metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }- .monitor-row { grid-template-columns: 1fr; }.cc-bars { grid-template-columns: 1fr; }.cfg-form { grid-template-columns: 1fr; gap: 4px; }.cfg-form .st-input { margin-bottom: var(--st-s-2); }}+@media (max-width: 900px) {+ .monitor-row { grid-template-columns: minmax(0, 1fr); }+}@media (max-width: 640px) {.st-header { padding: 0 var(--st-s-3); gap: var(--st-s-2); }.st-header .st-tabs { margin-left: 0; }@@ -188,6 +192,26 @@ main { flex: 1; min-height: 0; display: flex; }.monitor, .about { padding: var(--st-s-4); }.facts { grid-template-columns: 1fr; gap: 2px; }.facts dd { margin-bottom: var(--st-s-2); }+ .cfg-form .st-input { max-width: none; }+ .st-btn, .st-input, .seg button, .st-tab { min-height: 40px; }+ .st-btn--icon, .st-composer__bar .st-btn--icon { width: 40px; height: 40px; }+ .st-btn--send { width: 44px; }+ .st-msg__meta .st-btn--icon, .facts .st-btn--icon { width: 40px; height: 40px; }+ .st-composer__bar { flex-wrap: wrap; }+ .tool-call__pre, .st-code pre, .table-wrap { max-width: 100%; }+}+@media (max-width: 560px) {+ .metrics { grid-template-columns: minmax(0, 1fr); }+}+@media (max-width: 480px) {+ .st-header { padding: 0 var(--st-s-2); gap: 6px; }+ .st-header__brand { font-size: var(--st-fs-md); }+ .st-tabs { gap: 2px; padding: 3px; }+ .st-tab { padding: 0 8px; }+ .composer-hint { display: none; }+ .chat { padding: var(--st-s-4) var(--st-s-3); }+ .monitor, .about { padding: var(--st-s-3); }+ .st-bubble { padding: 10px 12px; }}/* Images tab (POST /v1/images/generations) */.img-form{display:flex;flex-direction:column;gap:12px}