[PR #3176] [CLOSED] [GUI] Web app: use wide windows and fit narrow screens #4490

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

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/3176
Author: @mnott
Created: 10/19/2026
Status: ❌ Closed

Base: main ← Head: web-responsive


📝 Commits (1)

  • 7872755 style(web): use wide windows and fit narrow screens

📊 Changes

1 file changed (+36 additions, -12 deletions)

View changed files

📝 serve/web/app.css (+36 -12)

📄 Description

Rebased onto v0.2.6 (one commit; one conflict in .cfg-form resolved so v0.2.6's own form changes stay).

Problem and result

The web app's views were capped at fixed widths (chat 860 px, monitor 1240 px), so on a wide window, or in a wide side panel, most of the space stayed empty. With this change the layout follows the window: the monitor grows up to 1920 px with its metric cards filling the row, chat, composer and About grow to 1100 px, and narrow screens stack.

Overview of our related macOS / Metal contributions: #4128.

Approach

CSS only (serve/web/app.css): max-width: min(100%, …) for the views, repeat(auto-fit, minmax(280px, 1fr)) for the metric cards, breakpoints at 900, 640, 560 and 480 px (the monitor row stacks, metrics drop to one column, the settings form becomes one column).

Validation

Revision 7872755d on v0.2.6, served by serve/server.py, measured in Chrome (element widths from getBoundingClientRect, grid columns from the computed style).

Passed:

Viewport v0.2.6 this branch
2265 px monitor 1240 px, 4 metric columns; chat 860 px monitor 1920 px, 6 metric columns; chat and composer 1100 px
1280 px – monitor 1266 px, 4 metric columns, monitor row 2 columns
900 px – monitor 886 px, 2 metric columns, monitor row stacked
480 px – monitor 466 px, 1 metric column, monitor row stacked

No horizontal scrolling at any of these widths.

Failed:

  • none observed

Not run:

  • Browsers other than Chrome; real phones (the narrow widths were measured in iframes).

Limits

CSS only; no change to the markup or scripts.


🔄 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/3176 **Author:** [@mnott](https://github.com/mnott) **Created:** 10/19/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `web-responsive` --- ### 📝 Commits (1) - [`7872755`](https://github.com/Niko1221/Strata/commit/7872755d7e924b2ec6296146e77ce6eaabb25b93) style(web): use wide windows and fit narrow screens ### 📊 Changes **1 file changed** (+36 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `serve/web/app.css` (+36 -12) </details> ### 📄 Description Rebased onto v0.2.6 (one commit; one conflict in `.cfg-form` resolved so v0.2.6's own form changes stay). ## Problem and result The web app's views were capped at fixed widths (chat 860 px, monitor 1240 px), so on a wide window, or in a wide side panel, most of the space stayed empty. With this change the layout follows the window: the monitor grows up to 1920 px with its metric cards filling the row, chat, composer and About grow to 1100 px, and narrow screens stack. ## Related discussion Overview of our related macOS / Metal contributions: #4128. ## Approach CSS only (`serve/web/app.css`): `max-width: min(100%, …)` for the views, `repeat(auto-fit, minmax(280px, 1fr))` for the metric cards, breakpoints at 900, 640, 560 and 480 px (the monitor row stacks, metrics drop to one column, the settings form becomes one column). ## Validation Revision `7872755d` on `v0.2.6`, served by `serve/server.py`, measured in Chrome (element widths from `getBoundingClientRect`, grid columns from the computed style). **Passed:** | Viewport | v0.2.6 | this branch | |---|---|---| | 2265 px | monitor 1240 px, 4 metric columns; chat 860 px | monitor 1920 px, 6 metric columns; chat and composer 1100 px | | 1280 px | – | monitor 1266 px, 4 metric columns, monitor row 2 columns | | 900 px | – | monitor 886 px, 2 metric columns, monitor row stacked | | 480 px | – | monitor 466 px, 1 metric column, monitor row stacked | No horizontal scrolling at any of these widths. **Failed:** - none observed **Not run:** - Browsers other than Chrome; real phones (the narrow widths were measured in iframes). ## Limits CSS only; no change to the markup or scripts. --- <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:24 +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#4490
No description provided.