mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
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#4860
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/964
Author: @taiman724
Created: 5/18/2026
Status: ✅ Merged
Merged: 5/18/2026
Merged by: @Xelvanis
Base:
staging← Head:fix/961-chat-text-color📝 Commits (2)
781b6e1fix(chat): apply Chat Text Color to message content (#961)cc4b6f8fix(chat): apply chat text color to conversation messages📊 Changes
2 files changed (+16 additions, -3 deletions)
View changed files
📝
packages/client/src/components/chat/ChatMessage.tsx(+8 -2)📝
packages/client/src/components/chat/ConversationMessage.tsx(+8 -1)📄 Description
Closes #961.
Why this change
The Chat Text Color appearance setting (
chatFontColor) was already wired intomessageTextStyleinChatMessage.tsxand applied to the message bubble containers (roleplay bubble around line 1645, texting bubble around line 2127). However,chatFontColorhad no visible effect on actual chat message text — the reporter set Chat Text Color to a noticeable red (#972121) and chat text stayed light/white (issue #961).Root cause: the inner
.mari-message-contentdiv has its own CSS rule inpackages/client/src/styles/globals.css:CSS specificity: a class rule on the same element wins over an inherited
colorcascaded from a parent's inline style. So even though the bubble parent hadcolor: chatFontColorinline, the child.mari-message-contentreverted tovar(--foreground). The narrator render path (around line 1463) already placesstyle={messageTextStyle}directly on the.mari-message-contentdiv, which is why narrator text colored correctly while chat / roleplay text did not.What changed
Two surgical edits in
packages/client/src/components/chat/ChatMessage.tsx:style={messageTextStyle}to the.mari-message-contentdiv insideroleplayBubbleContent.style={messageTextStyle}to the.mari-message-contentdiv inside the texting bubble.Both edits mirror the narrator path's existing pattern. Inline style on the same element beats the class rule, so
color: chatFontColor(andfontSize/textStrokeStylecarried bymessageTextStyle) now wins.No CSS, store, or settings UI changed. No behavior changes when
chatFontColoris empty (default):messageTextStyleonly setscolorwhenchatFontColoris truthy — otherwise.mari-message-content'scolor: var(--foreground)continues to apply.Diff: 1 file, +8 / -2.
Validation
pnpm check(ranpnpm install --frozen-lockfilethenpnpm checklocally; clean — TypeScript, ESLint, and the production build all pass).dialogueColor/ per-speaker color independently fromchatFontColor.var(--foreground)in both light and dark mode.chatFontSizeand the text-stroke setting still apply correctly on the same content divs (already applied via bubble parent and continue to apply now via the inner div as well).I have not run a dev-server visual test myself, so all manual checks above are intentionally left unchecked.
Note
Co-developed with AI assistance; reviewed and tested by submitter.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.