mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8104] [MERGED] fix(chat): wrap fenced code within the message column #8104
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#8104
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/8104
Author: @SpicyMarinara
Created: 10/22/2026
Status: ✅ Merged
Merged: 10/22/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/fenced-code-wrapping📝 Commits (3)
b2fad0btest(chat): reproduce desktop fenced code overflowc8b06ddfix(chat): wrap fenced code at every screen width42996e4test(chat): align code block guard with shared wrapping📊 Changes
3 files changed (+114 additions, -19 deletions)
View changed files
➕
e2e/code-block-wrapping.e2e.ts(+100 -0)📝
packages/client/src/styles/globals.css(+4 -13)📝
scripts/regressions/open-issues.regression.ts(+10 -6)📄 Description
Linked issue
Closes #8103
Why this change
Long paragraphs inside triple-backtick code fences run horizontally beyond the readable message area on desktop. The shared stylesheet previously enabled wrapping only below 768px, so the same message behaved differently on a phone.
What changed
Validation
pnpm install --frozen-lockfile: passed.pnpm check: passed, including localization, formatting, types and production builds. An existingHomeProfessorMariChat.tsx:380hook-dependency warning remains (no errors).pnpm regression:ui e2e/code-block-wrapping.e2e.ts e2e/markdown-blocks.e2e.ts --project=desktop-chromium --project=mobile-chromium --project=mobile-webkit --workers=2: 12/12 passed, covering both themes, text equality, actual line wrapping, viewport containment and existing Markdown block spacing.pnpm smoke:ui: 7/7 passed, including Game narration.0eaca9efe3a1374733753c366a864abbd72796d7: 3 files reviewed, one trivial suggestion rejected with evidence. The suggestion asks for phone-width coverage; this spec was run on the configured mobile Chromium (390px) and mobile WebKit projects in both themes, as recorded above and shown in the screenshots.Browser runs used disposable data, ports 7850–7853 and at most two workers. Screenshots were visually inspected.
node scripts/run-regressions.mjs --filter scripts/regressions/open-issues.regression.ts: 1/1 passed after reproducing its staleoverflow-x: autoassertion. Finalpnpm checkalso passed after this guard repair. The CSS and browser spec are unchanged from the 12/12 browser run above.Manual verification still needed
Docs and release impact
No documentation, new UI copy or release metadata is needed for this layout correction.
UI evidence
Before/after screenshots are in a self-contained HTML proof file; download it to view the embedded PNGs. All four published PNGs were verified byte-for-byte against their local originals. Game narration uses a separate formatter and does not render these fenced-code message rows; its narration is outside this CSS fix.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.