mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7514] [MERGED] fix(client): preset prompts and Example Dialogue follow the app font #7771
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#7771
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/Pasta-Devs/Marinara-Engine/pull/7514
Author: @SpicyMarinara
Created: 10/13/2026
Status: ✅ Merged
Merged: 10/13/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/7438-custom-font-preset-editor📝 Commits (2)
0b398a8fix(client): preset prompts and Example Dialogue follow the app font (#7438)f4873defix(client): keep straight quotes in prompt fields and match Expand window to the field📊 Changes
8 files changed (+119 additions, -9 deletions)
View changed files
📝
docs/appearance/fonts.md(+2 -0)➕
e2e/prompt-field-font.e2e.ts(+90 -0)📝
packages/client/src/App.tsx(+6 -2)📝
packages/client/src/components/characters/CharacterEditor.tsx(+1 -1)📝
packages/client/src/components/presets/PresetEditor.tsx(+3 -3)📝
packages/client/src/components/presets/PresetVariablesEditor.tsx(+2 -2)📝
packages/client/src/components/ui/MacroTextarea.tsx(+8 -1)📝
packages/client/src/styles/globals.css(+7 -0)📄 Description
Linked issue
Closes #7438
Why this change
font-mono, so they stayed monospace whatever font you picked. Users who choose a font for readability had to write a custom theme to get it there.What changed
Nothing that worked before stops working. With the default font selected, every field looks exactly as it did.
"and'stay straight even when the picked font draws curly quotes, so you can still see which quote is stored.mari-prompt-fontrule is a Tailwind utility, in the same cascade layer as thefont-monoit replaces. A theme that changes the app font through--font-y2kchanges these fields too.docs/appearance/fonts.mdnow says which fields follow the picked font, and that other prompt fields stay monospace. Translation follow-up: #7515.Validation
pnpm checkpasses locallyCONTRIBUTING.mdCommands run by the agent (not a substitute for the boxes above):
e2e/prompt-field-font.e2e.ts. It creates a preset with one section and a character with Example Dialogue and First Message, and readsgetComputedStyle().fontFamily.ui-monospace.setFontFamily("Prompt Font Fixture"), those three fields, the section's Expand editor window and Example Dialogue start with"Straight Quotes", "Prompt Font Fixture".playwright test e2e/prompt-field-font.e2e.tspassed with the fix ondesktop-chromium,mobile-chromiumandmobile-webkit(headf4873de7a).origin/stagingclient code: failed as expected. It receivedui-monospace, SFMono-Regular, …, monospaceafter the font was set.0b398a861: failed as expected. Prompt fields read"Prompt Font Fixture", "Straight Quotes", …, so the picked font's quote glyphs won. With only the Expand window change reverted, First Message's Expand window readStraight Quotes, Prompt Font Fixture, …instead of monospace.pnpm check: passed (exit 0). The built CSS has.mari-prompt-font{font-family:var(--font-prompt,var(--font-mono))}inside@layer utilities.App.tsxsets--font-prompt: var(--font-y2k)only while a font is picked.node ./scripts/run-regressions.mjs --filter <name>, each passed: chat-widget-style-persistence, frozen-server-client-timeouts, prompt.regression (7/7), prompt-token-counters, roleplay-streaming, tracker-gallery-ui, floating-window, mobile-tracker-help-layout, mobile-safe-area-inset, persona-client-contract, avatar-crop-contract, music-dj-and-floating-ui, onboarding-s1, mari-polish, assigned-issue-sweep, character-bulk-tags, capability-package-chat-controls, and the source-scan guards open-issues, agent-activation and spatial-context.coderabbit review --agent --committed --base-commit <merge-base>) atf4873de7a: 1 trivial finding, not applied. It asked the e2e to load a real fixture font and check the rendered glyphs. The fix only changes whichfont-familydeclaration applies, which is exactly what the computedfont-familyshows. A real font file would add a test asset without proving more.Manual verification notes
Still to do in a browser:
Loraworks well). Check that the same fields, plus a choice option's value and its expanded editor, switch to it. Check that Expand editor on a preset section opens in that font too.Apple Chanceryon macOS). TypeHe said "hi" and 'bye'in a preset section. Check that the quotes look as straight as in the preset title field.textarea { font-family: … }, check that the theme still wins on these fields.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Docs:
docs/appearance/fonts.mdgained one paragraph. Translation follow-up: #7515. No version bump. Per policy,CHANGELOG.mdis untouched.UI evidence (if applicable)
None attached. The e2e above checks the computed font family.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.