mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1450] [CLOSED] web: wide layout — a four-column single page on very wide screens, and a card look for the chat and the drawer #3463
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3463
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1450
Author: @Astemiir
Created: 10/7/2026
Status: ❌ Closed
Base:
main← Head:wide-layout📝 Commits (1)
031830fweb: wide layout - four columns on very wide screens, card look for chat and drawer📊 Changes
3 files changed (+180 additions, -8 deletions)
View changed files
📝
serve/web/app.js(+16 -4)📝
serve/web/index.html(+7 -4)➕
serve/web/wide-layout.css(+157 -0)📄 Description
Title
web: wide layout — a four-column single page on very wide screens, and a card look for the chat and the drawer
Summary
Adds an opt-in wide layout to the web UI. On very wide screens (≥ 3200 px) Monitor, Chat, About
and Sampling sit side by side as four columns of a single page instead of four tabs; at any width the
chat and the sampling drawer get the same card ("window") treatment and the same spacing as the cards
around them, so the page stops changing shape between the two.
It is CSS-only, plus two small hooks in
index.htmland three lines inapp.js. Everything is scopedto
body[data-layout="all"]— the one attribute this patch adds to<body>. Remove that attribute(or the new stylesheet's
<link>) and the page renders exactly as it does today, so it cannot affectanyone who does not want it.
What changed
serve/web/wide-layout.css— the whole layout:@media (min-width: 3200px)turns<body>into a grid of1240px minmax(660px, 1fr) 860px 400px(they add up to 3840 px) and makes<main>display: contents, so its four sections become the grid cells and are all visible at once.The sampling drawer becomes the fourth column (no close button, no scrim there);
kit caps
.chatand.st-composerat 860 px and.st-msgat 720 px, which left the composer anarrow centred column with much bigger side insets than the bottom one); the sampling drawer
becomes a floating card; the top inset of Monitor and About is halved (24 → 12 px) while their
bottom inset stays at 24 px, so their bottom edge keeps meeting the chat card's; the vertical gaps
between the "windows" are unified at 12 px.
serve/web/index.html— the stylesheet link (placed at the end of<head>, after the themescript, rather than right after
app.css, so that any other stylesheet added at that spot — forexample the localization patch — merges without a conflict),
<body data-layout="all">, the tabsreordered to Monitor → Chat → About → Settings (Settings carries a gear icon and opens the sampling
drawer), and the brand "Strata" is now a link to the repository, shaped like a tab.
serve/web/app.js— the threeif (tab === "monitor"/"about")guards aroundrenderMonitor,renderConvCacheandrenderAboutare dropped, and the MCP refresh no longer waits for the Monitortab, because in the wide layout every section is on screen the whole time (otherwise those columns
would freeze). Also: the Settings tab opens the drawer and stays lit while it is open, and the model
config is loaded at start-up, since its card lives in a column that is always visible.
Extra Notes
on very wide screens. What does change at every width is the spacing and the card treatment (the
"FullHD" half of this patch); both halves come from the same stylesheet, and I am happy to split them
into two commits if you would like a smaller first step.
tokens.css, so light and dark keepworking unchanged.
main(git apply, LF, byte-identical to the tree itwas built from) and was run live in a browser — at 3400×1300 the four columns are laid out side by
side (1240 + 900 + 860 + 400, with the drawer as the fourth column) and at 1600×900 the tabs still
switch and the chat is a centred 1172 px card.
i18n-ru): with the link placement above, bothmerge orders (
main+ localization, then this; and the reverse) merge cleanly with no conflict.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.