mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3894] [Issue]: Empty Roleplay background shows broken-image placeholder in top-left corner #2106
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#2106
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 @Xelvanis on GitHub (Jul 21, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3894
Originally assigned to: @SpicyMarinara on GitHub.
Summary
When a Roleplay chat has no background image selected, Chromium renders a small broken-image placeholder in the upper-left corner of the chat surface. It reproduces in both Google Chrome and a Microsoft Edge installed-app window, so it is not specific to the Edge app shell.
Expected behavior
A Roleplay chat without a background should show the normal empty/background surface with no image placeholder.
Actual behavior
A browser-native broken-image marker appears at the upper-left edge, underneath the Roleplay HUD controls.
Steps to reproduce
staging.Environment
stagingcommite6e4bc162c2358b2c34844398152200a20a94342)Logs, screenshots, or video
Additional context
This appears to be a regression from #3837 / commit
bdcef26e9d7ae103bcbae20158144663252020d4, which changed the twoCrossfadeBackgroundlayers inChatRoleplaySurface.tsxfrom<div>elements with CSS background images to<img>elements.Both image slots are always rendered. An empty slot receives
src={bgA ?? undefined}orsrc={bgB ?? undefined}; when the active slot is empty, its opacity can still be1, exposing the browser's placeholder at the element's top-left corner.The empty slot could remain mounted for crossfade behavior while being kept at opacity
0until it has a URL.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: