mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #4899] [MERGED] docs(card-css): animate opacity, not box-shadow, in the glow example #6532
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#6532
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/4899
Author: @kolacheee
Created: 8/11/2026
Status: ✅ Merged
Merged: 8/11/2026
Merged by: @kolacheee
Base:
staging← Head:docs/card-css-glow-perf📝 Commits (2)
4d117fbdocs(card-css): animate opacity, not box-shadow, in the glow example (#4897)f7606e4docs(card-css): drop the bubble's static inset so it doesn't stack with the pulsing ::after glow (CodeRabbit)📊 Changes
2 files changed (+25 additions, -4 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
docs/appearance/card-css-theming.md(+24 -4)📄 Description
Linked issue
Related to #4897. This fixes the documented example that triggers the problem; the engine-side scoping fixes (the two reduce toggles) remain tracked in that issue.
Why this change
box-shadow(@keyframes grimoire-pulse) on every roleplay message bubble.box-shadowis a paint property, so animating it forces a full repaint and blur recomputation of the bubble on every frame. On a weak/integrated GPU this pins the card (a reporter saw ~53% GPU with fans audible, and 158 fps of continuous repaints in the DevTools FPS meter; Paint flashing lit up the whole message bubble), and anybackdrop-filterpanel layered over it re-blurs too.What changed
grimoire-pulseglow so it animatesopacityon a full-bleed::afteroverlay instead of the bubble'sbox-shadow. Opacity is GPU-composited, so the pulse costs almost nothing.box-shadowon the bubble; the pulsing inner glow rides the overlay.overflow: hiddenis preserved (message content, e.g. inline GIFs, stays clipped to the rounded corners), and the overlay ispointer-events: noneso it never intercepts clicks.packages/client/src/lib/card-css.ts(blocklist model, not allowlist;opacity,pointer-events,will-change,::after, andcontent: ""all pass, and the theme-token blocklist is untouched).Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
pnpm regression:docslocally: passed (validates doc structure across all 11 languages: en, de, es, fr, hi, ja, ko, pl, pt-br, ru, zh-hans).Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)Notes: CHANGELOG updated. A companion
docs-i18nPR mirrors the identical code-block change to all 10 locale copies ofcard-css-theming.md(the CSS block is byte-identical across locales, so no translation is required); link added once opened.UI evidence (if applicable)
Docs-only (an example code block). The reporter's DevTools Paint-flashing capture showed the entire message bubble repainting every frame before the fix.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.