mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #4049] [MERGED] fix(chat-settings): keep drawer open behind macro modals + match preset field styling #6220
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#6220
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/4049
Author: @SpicyMarinara
Created: 7/24/2026
Status: ✅ Merged
Merged: 7/24/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/chat-settings-macro-modal-and-field-styling📝 Commits (1)
979f8dffix(chat-settings): keep drawer open behind macro modals; match preset field styling📊 Changes
4 files changed (+33 additions, -22 deletions)
View changed files
📝
packages/client/src/components/chat/ChatSettingsDrawer.tsx(+4 -0)📝
packages/client/src/components/ui/MacroTextarea.tsx(+3 -0)📝
packages/client/src/features/chat-settings/sections/ConversationPromptSection.tsx(+13 -11)📝
packages/client/src/features/chat-settings/sections/GameExtraPromptSection.tsx(+13 -11)📄 Description
Why
Two follow-ups to the merged #4046 (Chat Settings prompt-preset UX), from maintainer feedback:
--secondary) background instead of the neutral chat-chrome field surface.Root causes
MacroTextarea's expanded editor and macro reference render in a portal ondocument.body, outside the Chat Settings panel. The drawer closes on anypointerdownoutside its panel, so clicking inside those windows (including their backdrop/close button) triggered the drawer's outside-close.mari-quick-preset-editorscope, whose.mari-editor-fieldrule swaps the field background to the neutral chat-chrome input surface. The Conversation/GameMacroTextareawasn't in that scope, somari-editor-fieldfell back to the dark--secondary.What changed
MacroTextarea.tsx: tag both portal overlays (expanded editor + macro reference) withdata-macro-modal.ChatSettingsDrawer.tsx: the outside-pointerdown close now ignores targets inside[data-macro-modal], so only the windows' own close controls dismiss them — the drawer stays open.ConversationPromptSection.tsx/GameExtraPromptSection.tsx: wrap the promptMacroTextareain themari-quick-preset-editorscope so its field matches the Roleplay preset-section styling.Test plan
pnpm checkpasses. (Passed in the authoring session; re-verify locally.)Follow-up to #4046. No linked issue — direct maintainer change request.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.