[PR #6864] [MERGED] fix(ui): keep long Effective parameter lines on one line #7359

Closed
opened 2026-10-23 04:18:59 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6864
Author: @SpicyMarinara
Created: 9/29/2026
Status: ✅ Merged
Merged: 9/29/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/6863-effective-line-wrap


📝 Commits (1)

  • 85b6f7d fix(ui): keep long Effective parameter lines on one line

📊 Changes

2 files changed (+8 additions, -1 deletions)

View changed files

📝 CHANGELOG.md (+2 -0)
📝 packages/client/src/components/ui/GenerationParametersEditor.tsx (+6 -1)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

Closes #6863

Why this change

  • In Chat Settings → Advanced Parameters, a long "Effective: … · from preset" line (for example under Max Output Tokens on a phone) wrapped onto a second line. That pushed the parameter's input box below its neighbour's, so the two boxes in the row no longer lined up.

What changed

  • ParameterHeader in GenerationParametersEditor.tsx keeps the Effective line on one line with an ellipsis, like the parameter label above it. The full text stays in the DOM for screen readers and is shown as a hover tooltip (title). The value comes first, so truncation only cuts into the "· from preset" part.
  • The Connection and Preset parameter editors use the same header, so they get the fix too.
  • One Unreleased changelog entry. No new UI copy.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Automated checks run locally on 85b6f7d9e:

  • Client tsc --noEmit, ESLint on the changed file, and Prettier on changed files: clean. The full pnpm check runs in CI (pnpm-validate).
  • Local CodeRabbit review (--committed against the staging merge base): 0 findings.
  • Temporary Playwright layout check, removed per repo policy. It used a preset with maxTokens: 131072, opened Chat Settings → Advanced Parameters, and measured the Temperature and Max Output Tokens inputs and the Effective line.
    • With the fix, on desktop Chromium, mobile Chromium and mobile WebKit: the line is one line high (15.9 px at 10.6 px text), the input tops match exactly, and the full text and title are intact.
    • Without the fix, on mobile WebKit: the line wraps to 31.9 px, and the Max Output Tokens input sits 15.9 px below Temperature.

Manual verification notes

  • Manually verify on a phone: in Chat Settings → Advanced Parameters, with a long Effective value (for example Max Output Tokens 131072 from a preset), both inputs in each row line up and the Effective line ends in an ellipsis.
  • Manually verify on desktop that hovering a truncated Effective line shows the full text.
  • Manually verify the Connection and Preset parameter editors look unchanged apart from the truncation.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

Only CHANGELOG.md changes. There are no user-facing docs changes.

UI evidence (if applicable)

The maintainer's iPhone screenshot on #6863 shows the misalignment. In the Playwright capture after the fix (mobile WebKit), "Effective: 131072 · from p…" ends in an ellipsis and every row of inputs lines up.

Summary by CodeRabbit

  • UI Improvements
    • Long “Effective” parameter values now stay on one line and are shortened with an ellipsis. Hover to view the full text.

🔄 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/Pasta-Devs/Marinara-Engine/pull/6864 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/29/2026 **Status:** ✅ Merged **Merged:** 9/29/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/6863-effective-line-wrap` --- ### 📝 Commits (1) - [`85b6f7d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/85b6f7d9e76db232810a082d4c8170a977f94271) fix(ui): keep long Effective parameter lines on one line ### 📊 Changes **2 files changed** (+8 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `packages/client/src/components/ui/GenerationParametersEditor.tsx` (+6 -1) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue Closes #6863 ## Why this change - In Chat Settings → Advanced Parameters, a long "Effective: … · from preset" line (for example under Max Output Tokens on a phone) wrapped onto a second line. That pushed the parameter's input box below its neighbour's, so the two boxes in the row no longer lined up. ## What changed - `ParameterHeader` in `GenerationParametersEditor.tsx` keeps the Effective line on one line with an ellipsis, like the parameter label above it. The full text stays in the DOM for screen readers and is shown as a hover tooltip (`title`). The value comes first, so truncation only cuts into the "· from preset" part. - The Connection and Preset parameter editors use the same header, so they get the fix too. - One Unreleased changelog entry. No new UI copy. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` Automated checks run locally on `85b6f7d9e`: - Client `tsc --noEmit`, ESLint on the changed file, and Prettier on changed files: clean. The full `pnpm check` runs in CI (`pnpm-validate`). - Local CodeRabbit review (`--committed` against the staging merge base): 0 findings. - Temporary Playwright layout check, removed per repo policy. It used a preset with `maxTokens: 131072`, opened Chat Settings → Advanced Parameters, and measured the Temperature and Max Output Tokens inputs and the Effective line. - With the fix, on desktop Chromium, mobile Chromium and mobile WebKit: the line is one line high (15.9 px at 10.6 px text), the input tops match exactly, and the full text and `title` are intact. - Without the fix, on mobile WebKit: the line wraps to 31.9 px, and the Max Output Tokens input sits 15.9 px below Temperature. ### Manual verification notes - Manually verify on a phone: in Chat Settings → Advanced Parameters, with a long Effective value (for example Max Output Tokens 131072 from a preset), both inputs in each row line up and the Effective line ends in an ellipsis. - Manually verify on desktop that hovering a truncated Effective line shows the full text. - Manually verify the Connection and Preset parameter editors look unchanged apart from the truncation. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) Only `CHANGELOG.md` changes. There are no user-facing docs changes. ## UI evidence (if applicable) The maintainer's iPhone screenshot on #6863 shows the misalignment. In the Playwright capture after the fix (mobile WebKit), "Effective: 131072 · from p…" ends in an ellipsis and every row of inputs lines up. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **UI Improvements** * Long “Effective” parameter values now stay on one line and are shortened with an ellipsis. Hover to view the full text. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:18:59 +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
Pasta-Devs/Marinara-Engine#7359
No description provided.