[PR #3601] [CLOSED] [GUI] fix Model settings fields overflowing their card at 1280x720 #4705

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

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/3601
Author: @G0-0000
Created: 10/21/2026
Status: ❌ Closed

Base: main ← Head: fix/model-settings-columns


📝 Commits (1)

  • e52c1a7 serve/web: keep the Model settings fields inside their card

📊 Changes

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

View changed files

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

📄 Description

Problem

At 1280x720, About -> Model settings overflows its card. The form's label column is sized minmax(180px, max-content), so the longest config key/help text widens it without bound; the right column is then squeezed, and the inputs and selects are clipped by the card edge. The same page is fine at larger sizes where the content is narrower relative to the window.

Fix

In serve/web/app.css only:

  • grid-template-columns: 75% minmax(0, 1fr): a stable label column and the rest for the field, which can shrink (minmax(0, ...)).
  • overflow-wrap: anywhere on the label, so a long key wraps instead of widening the column.
  • width: 100%; min-width: 0 on .cfg-form .st-input, so the field fills its column and never overflows.

No DOM, JavaScript or endpoint changes. The existing @media (max-width: 1000px) single-column rule is untouched.

Validation

Served the page from a local 0.1.47 server and checked About -> Model settings at 1280x720: labels wrap, fields stay inside the card, and the Save row is unchanged. Not tested at other window sizes or in other browsers.


🔄 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/3601 **Author:** [@G0-0000](https://github.com/G0-0000) **Created:** 10/21/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/model-settings-columns` --- ### 📝 Commits (1) - [`e52c1a7`](https://github.com/Niko1221/Strata/commit/e52c1a74b7e415d192a4ef6e9361a9145720082c) serve/web: keep the Model settings fields inside their card ### 📊 Changes **1 file changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `serve/web/app.css` (+3 -3) </details> ### 📄 Description ## Problem At 1280x720, About -> Model settings overflows its card. The form's label column is sized `minmax(180px, max-content)`, so the longest config key/help text widens it without bound; the right column is then squeezed, and the inputs and selects are clipped by the card edge. The same page is fine at larger sizes where the content is narrower relative to the window. ## Fix In `serve/web/app.css` only: - `grid-template-columns: 75% minmax(0, 1fr)`: a stable label column and the rest for the field, which can shrink (`minmax(0, ...)`). - `overflow-wrap: anywhere` on the label, so a long key wraps instead of widening the column. - `width: 100%; min-width: 0` on `.cfg-form .st-input`, so the field fills its column and never overflows. No DOM, JavaScript or endpoint changes. The existing `@media (max-width: 1000px)` single-column rule is untouched. ## Validation Served the page from a local 0.1.47 server and checked About -> Model settings at 1280x720: labels wrap, fields stay inside the card, and the Save row is unchanged. Not tested at other window sizes or in other browsers. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:38:29 +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#4705
No description provided.