[GH-ISSUE #3939] [Issue]: Portrait crop image fills screen and triggers file upload #2129

Closed
opened 2026-10-21 05:45:38 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @SpicyMarinara on GitHub (Jul 22, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3939

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Opening the crop or resize tool for a character portrait causes the image to spill outside its container and fill the screen. Clicking anywhere then opens a file upload dialog.

Expected behavior

The portrait should remain within the crop or resize container, and page clicks should interact with the editor normally without opening an unrelated file upload dialog.

Actual behavior

The portrait fills the entire screen when crop or resize is selected. Clicking anywhere opens a file upload dialog, preventing affected cards from being edited unless they are reimported.

Steps to reproduce

  1. Open a character card whose portrait has been cropped.
  2. Edit the character and select the option to crop or resize the portrait.
  3. Observe that the portrait spills out of its container and fills the screen.
  4. Click anywhere and observe that a file upload dialog opens.

Environment

  • Marinara Engine version: v2.3.3
  • Install type: docker
  • OS + version: macOS Tahoe 26.5.2
  • Browser or app shell: Not provided

Logs, screenshots, or video

Screen recording attached: https://cdn.discordapp.com/attachments/1529471841255555212/1529471850025975879/Screen_Recording_2026-07-22_at_8.51.15_PM.mov?ex=6a620f29&is=6a60bda9&hm=47c38094a5aa3ef9bd2ed401e7697f08b190693b49dba7a4ecef91070c7b5c1d&

Additional context

No custom themes are enabled. The issue occurs with all cards whose portraits have been cropped. Cards adjusted before the issue appeared are now impossible to edit unless they are reimported.

Discord thread: [Bug] Character menu bugs out when cropping portrait image
Discord thread link: https://discord.com/channels/1417099416812392641/1529471841255555212
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (4 messages)
[2026-07-22T12:55:03.168Z] Shidonai: OS: MacOS Tahoe 26.5.2
Installation method: Docker
Version: v2.3.3
Chatting Mode: N/A

No custom themes. Happens with all cards that have had their portraits cropped. 

Cards that I had adjusted the portraits for prior to this bug appearing are now impossible to edit unless I reimport them.
[attached file: Screen_Recording_2026-07-22_at_8.51.15_PM.mov — https://cdn.discordapp.com/attachments/1529471841255555212/1529471850025975879/Screen_Recording_2026-07-22_at_8.51.15_PM.mov?ex=6a620f29&is=6a60bda9&hm=47c38094a5aa3ef9bd2ed401e7697f08b190693b49dba7a4ecef91070c7b5c1d&]
[Discord message: https://discord.com/channels/1417099416812392641/1529471841255555212/1529471841255555212]

[2026-07-22T13:01:13.895Z] Marinara: Oh, thank you for the video.
[Discord message: https://discord.com/channels/1417099416812392641/1529471841255555212/1529473396197294141]

[2026-07-22T13:01:37.045Z] Marinara: Looks like when you select to crop or resize the avatar, the image spills out of its container and fills the entire screen.
[Discord message: https://discord.com/channels/1417099416812392641/1529471841255555212/1529473493295566919]

[2026-07-22T13:04:04.436Z] Shidonai: Yep. Also, clicking anywhere brings up a file upload dialog
[Discord message: https://discord.com/channels/1417099416812392641/1529471841255555212/1529474111498358855]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Jul 22, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3939 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Opening the crop or resize tool for a character portrait causes the image to spill outside its container and fill the screen. Clicking anywhere then opens a file upload dialog. ## Expected behavior The portrait should remain within the crop or resize container, and page clicks should interact with the editor normally without opening an unrelated file upload dialog. ## Actual behavior The portrait fills the entire screen when crop or resize is selected. Clicking anywhere opens a file upload dialog, preventing affected cards from being edited unless they are reimported. ## Steps to reproduce 1. Open a character card whose portrait has been cropped. 2. Edit the character and select the option to crop or resize the portrait. 3. Observe that the portrait spills out of its container and fills the screen. 4. Click anywhere and observe that a file upload dialog opens. ## Environment - Marinara Engine version: v2.3.3 - Install type: docker - OS + version: macOS Tahoe 26.5.2 - Browser or app shell: Not provided ## Logs, screenshots, or video Screen recording attached: https://cdn.discordapp.com/attachments/1529471841255555212/1529471850025975879/Screen_Recording_2026-07-22_at_8.51.15_PM.mov?ex=6a620f29&is=6a60bda9&hm=47c38094a5aa3ef9bd2ed401e7697f08b190693b49dba7a4ecef91070c7b5c1d& ## Additional context No custom themes are enabled. The issue occurs with all cards whose portraits have been cropped. Cards adjusted before the issue appeared are now impossible to edit unless they are reimported. Discord thread: [Bug] Character menu bugs out when cropping portrait image Discord thread link: https://discord.com/channels/1417099416812392641/1529471841255555212 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (4 messages)</summary> ```text [2026-07-22T12:55:03.168Z] Shidonai: OS: MacOS Tahoe 26.5.2 Installation method: Docker Version: v2.3.3 Chatting Mode: N/A No custom themes. Happens with all cards that have had their portraits cropped. Cards that I had adjusted the portraits for prior to this bug appearing are now impossible to edit unless I reimport them. [attached file: Screen_Recording_2026-07-22_at_8.51.15_PM.mov — https://cdn.discordapp.com/attachments/1529471841255555212/1529471850025975879/Screen_Recording_2026-07-22_at_8.51.15_PM.mov?ex=6a620f29&is=6a60bda9&hm=47c38094a5aa3ef9bd2ed401e7697f08b190693b49dba7a4ecef91070c7b5c1d&] [Discord message: https://discord.com/channels/1417099416812392641/1529471841255555212/1529471841255555212] [2026-07-22T13:01:13.895Z] Marinara: Oh, thank you for the video. [Discord message: https://discord.com/channels/1417099416812392641/1529471841255555212/1529473396197294141] [2026-07-22T13:01:37.045Z] Marinara: Looks like when you select to crop or resize the avatar, the image spills out of its container and fills the entire screen. [Discord message: https://discord.com/channels/1417099416812392641/1529471841255555212/1529473493295566919] [2026-07-22T13:04:04.436Z] Shidonai: Yep. Also, clicking anywhere brings up a file upload dialog [Discord message: https://discord.com/channels/1417099416812392641/1529471841255555212/1529474111498358855] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:45:38 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Jul 22, 2026):

I’m handling this on agent/fix-portrait-crop-overlay. The report reproduces the same Metadata crop escape fixed for #3741 on staging; this follow-up will harden the remaining editor upload target so an escaped crop layer cannot hijack page clicks, and will extend the regression guard before the fix is merged to staging.

<!-- gh-comment-id:5046764945 --> @SpicyMarinara commented on GitHub (Jul 22, 2026): I’m handling this on `agent/fix-portrait-crop-overlay`. The report reproduces the same Metadata crop escape fixed for #3741 on staging; this follow-up will harden the remaining editor upload target so an escaped crop layer cannot hijack page clicks, and will extend the regression guard before the fix is merged to `staging`.
Author
Owner

@SpicyMarinara commented on GitHub (Jul 22, 2026):

Resolved in #3942 and merged to staging as 6cbfe56c9. The editor avatar upload targets now provide an explicit positioning context, cropped image layers cannot intercept page clicks, and regression coverage guards both behaviors.

<!-- gh-comment-id:5046944615 --> @SpicyMarinara commented on GitHub (Jul 22, 2026): Resolved in #3942 and merged to `staging` as 6cbfe56c9. The editor avatar upload targets now provide an explicit positioning context, cropped image layers cannot intercept page clicks, and regression coverage guards both behaviors.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#2129
No description provided.