mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7249] [MERGED] fix(chat): keep framed chat buttons' inner ring when the border colour changes #7645
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#7645
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/7249
Author: @SpicyMarinara
Created: 10/7/2026
Status: ✅ Merged
Merged: 10/7/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/arched-widget-icon-7244📝 Commits (7)
c4f3f23fix(chat): keep framed chat buttons' inner ring when the border colour changes4887deaMerge origin/staging into fix/arched-widget-icon-72445faf72btest(chat): check the inner button ring on every preset shape (#7244)1ccac28docs(changelog): match the Chat widget style label in the #7244 entry6da20caMerge remote-tracking branch 'origin/fix/arched-widget-icon-7244' into HEADa51691dtest(chat): check the inner ring on Cut corners buttons with custom colours7a9d3d3Merge origin/staging into fix/arched-widget-icon-7244📊 Changes
4 files changed (+41 additions, -3 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
e2e/chat-widget-style.e2e.ts(+20 -0)📝
e2e/phone-bubbles.e2e.ts(+8 -0)📝
packages/client/src/styles/themes/chat-widgets.css(+12 -3)📄 Description
Linked issue
Closes #7244
Why this change
.mari-window-bubble__paintlayer draws it instead, so gradients work. That layer redraws only the outline and the fill. The two things that drew the inner ring are switched off: the button shadow (Mari) and the::afterornament (Dottore, and every preset with Cut corners). Window frames don't have this problem because.mari-window::afteralready redraws their inner frame with--mari-widget-frame-shadow.What changed
packages/client/src/styles/themes/chat-widgets.css: the paint layer's inner fill now redraws the preset's inner ring, the same way window frames redraw theirs.--mari-widget-button-ringfor Mari and Dottore: a 2px gap in the background colour, then a 1px ring in the border colour. In custom-border mode those are the user's chosen colours.--mari-widget-button-shadownow reuses it. The computed value is unchanged..mari-window-bubble__paint::aftergetsbox-shadow: var(--mari-widget-ornament-shadow, var(--mari-widget-button-ring, none)). Cut corners already defines exactly that ring as--mari-widget-ornament-shadow, so every preset with Cut corners is covered without touching that block. Default on other shapes staysnone.--mari-widget-button-ringlike the other preset tokens, so an unselected card never picks up the live preset's ring.e2e/chat-widget-style.e2e.ts: newexpectButtonRingcheck in the existing colour-controls flow. No existing assertion changed. After gradient colours are applied, the selected preview button and the real Chat Settings button must draw the gap in the background's first colour and the ring in the border's first colour. It covers Mari (Arched, button-ring path) and Dottore (Cut corners, ornament path), and checks that Default staysnone.e2e/phone-bubbles.e2e.ts: the existing phone Chat tools preset and shape loop now also checks the inner ring under custom gradient paint. It covers Dottore on Rounded and Arched, Mari on Square and Cut corners, and Default with no ring. No existing assertion changed. Without this, removing Dottore from the new ring token would pass every test.CHANGELOG.md: entry under[Unreleased].Validation
pnpm checkpasses locallyCONTRIBUTING.mdAgent-run checks (for reference; the boxes above are for the human reviewer):
pnpm checkexited 0.playwright test e2e/chat-widget-style.e2e.tsondesktop-chromiumandmobile-webkit: 11 passed, 1 skipped (the existing desktop-only skip).origin/stagingCSS:widget presets preserve Default…failed in dark and light on both projects (4 failed,Received: "none"). With this fix it passes.playwright test e2e/phone-bubbles.e2e.ts -g "follows every preset and shape override"onmobile-chromiumandmobile-webkit: 4 passed with the fix. It fails ondottore/roundedwhen Dottore is removed from the ring token, and in all 4 runs with theorigin/stagingCSS (Received: "none").Manual verification notes
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)The only doc change is the CHANGELOG entry. The
--mari-widget-*variables are internal, and the public--mari-window-bubble-*hooks are unchanged.UI evidence (if applicable)
Screenshots were captured locally and are not attached. What they show, for Mari + Arched in dark mode on desktop Chromium:
stagingafter setting a teal Border & Buttons Color: a single teal outline; the inner ring is gone.The same holds on mobile WebKit, in light mode, for Dottore, and for the real Chat Settings button.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.