mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #8842] [MERGED] fix(client): back the chat's model menu with the opaque page background #8836
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#8836
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/8842
Author: @SpicyMarinara
Created: 11/4/2026
Status: ✅ Merged
Merged: 11/4/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/connections-menu-opaque📝 Commits (1)
11de9cefix(client): back the chat's model menu with the opaque page background📊 Changes
3 files changed (+87 additions, -3 deletions)
View changed files
📝
e2e/connection-model-switcher.e2e.ts(+53 -0)📝
packages/client/src/components/chat/QuickConnectionSwitcher.tsx(+4 -3)📝
packages/client/src/styles/themes/chat-widget-surfaces.css(+30 -0)📄 Description
Linked issue
Closes #8833
Why this change
Issue #8833, requested by a fellow developer: the connections menu in chats is drawn too transparent. The chat behind it shows through, so its connection and model names are hard to read, especially over image or gradient backgrounds and with translucent chat styles. The fix gives this menu the same opaque floor the app's other readable menus already use (the phone Quick Switcher's opaque window, Mari's model menu, and Firefox's roleplay input shell), and keeps the menu's look. A user's chosen glass color or gradient still tints the menu, but the chat no longer shows through.
What changed
--mari-chat-bg,--mari-window-bg) still paint as written..mari-chat-solid-surfaceclass inpackages/client/src/styles/themes/chat-widget-surfaces.css: it lays--mari-chat-solid-paint(default--card) onvar(--background), and under Apply preset colors it lays the resolved preset or custom paint on the same floor. The cut-corner frame inherits it through--mari-chat-existing-bg.QuickConnectionSwitcher.tsxuses that class instead ofbg-[var(--card)]/bg-[var(--background)]. Roleplay keeps the card paint and Conversation keeps the page background.e2e/connection-model-switcher.e2e.ts: new tests 'the models menu stays opaque over a busy chat background in dark/light theme (#8833)'. On desktop and phone they assert that the bottom background layer has alpha 1 (on desktop, with the card or chat-style gradient above it), with and without a translucent 0.3 custom chat color under Apply preset colors.Validation
pnpm checkpasses locallyManual verification notes
Agent-run checks (for reference):
Independent review: no findings. Dottore Review pending.
Known limits and risks:
--mari-chat-bgor--mari-window-bgto a translucent paint still gets that paint as written. A hook can be a color or a gradient, so it cannot be laid on the background. This is marked with aponytail:comment that names the upgrade path: split each hook into a registered color property and an image property.--background. A custom theme that makes--backgrounditself translucent would weaken it. Every bundled theme (default, light, SillyTavern, Halloween, New Year's Eve and Day) is opaque.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.