mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #8712] [Issue]: Expose per-character avatar metadata for CSS themes #8467
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#8467
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?
Originally created by @SpicyMarinara on GitHub (Nov 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8712
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Merged Roleplay portraits do not expose character names, IDs, or name colors to CSS themes. Theme authors need stable per-portrait hooks to add optional character labels, colored borders, and custom layouts while preserving the default appearance.
Expected behavior
Each merged Roleplay portrait should provide a stable wrapper and character metadata usable by CSS, such as a character ID, character name, and name-color value or CSS variable. Existing avatar sizing, positioning, cycling behavior, and default appearance should remain unchanged unless a custom theme uses these hooks.
Actual behavior
Individual portraits do not expose the character name or color to CSS, preventing themes from targeting characters or rendering character-specific labels and borders. The maintainer indicated that exposing CSS data may create security vulnerabilities and suggested that character-colored borders could instead be implemented internally.
Steps to reproduce
Environment
Logs, screenshots, or video
No logs or video provided. Attached screenshots: https://cdn.discordapp.com/attachments/1567101797070544986/1567101797288386623/image.png?ex=6aeaf4c7&is=6ae9a347&hm=9f9290fe3d66e7967ed5b1100fa21be549eea70f1d4babae38b1ccb8e35ba57b and https://cdn.discordapp.com/attachments/1567101797070544986/1567101797737431141/image.png?ex=6aeaf4c7&is=6ae9a347&hm=ca0100972edbcc838110c756a22a24d4aadbad027e6ccda3e119f2c65a603d1f&.
Additional context
The requester reports that the behavior already works in a privately patched build and that the native change is limited to one React file, with labels and borders handled by CSS. The proposed approach was a stable portrait wrapper with data-character-id, data-character-name, data-character-name-color, and a CSS variable for the name color; exposing the original gradient alongside a solid fallback was also suggested. No Support Diagnostics were provided.
Discord thread: Expose per-character avatar metadata for CSS themes in merged Roleplay
Discord thread link: https://discord.com/channels/1417099416812392641/1567101797070544986
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)
Discord thread transcript (8 messages)
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: