mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5267] [Issue]: Macro modals open behind floating panels at narrow viewports #2916
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#2916
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 (Aug 19, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5267
Originally assigned to: @SpicyMarinara on GitHub.
Summary
At viewports 767px wide or narrower, the expanded macro editor and macro reference modal render behind high-z-index floating panels, making the modals unusable. This is confirmed with the author's notes panel and may also affect the summary popover.
Expected behavior
Expanded macro editors and macro reference modals should render above the author's notes panel and other floating panels at all viewport widths.
Actual behavior
At narrow viewports, the macro modals open underneath the author's notes panel because the panel uses z-index 9999 while the macro modals use z-index 140 or 145. Wide viewports are unaffected because the desktop author's notes panel uses z-index 70.
Steps to reproduce
Environment
34442e26da)Logs, screenshots, or video
Screenshot: https://cdn.discordapp.com/attachments/1539645650478571590/1539645650868772864/image.png?ex=6a871240&is=6a85c0c0&hm=1cd6ec7745d45f24f3790d1f73b7d0663df72d8eed8153eb2ce09ed79497eb0e&
Additional context
The narrow layout is selected by matchMedia("(max-width: 767px)") in ChatRoleplaySurface.tsx:184. The mobile author's notes panel uses z-[9999] at ChatRoleplaySurface.tsx:1051, while the desktop panel uses z-[70] at line 1085. ExpandedMacroEditor and MacrosReferenceModal use z-[140] and z-[145] at MacroTextarea.tsx:133 and :207. SummaryPopover.tsx:1316 also uses z-[9999] and hosts a MacroTextarea, so the conflict may affect that panel as well. Both macro modals portal to document.body. The issue was reproduced with the reporter's personal extension disabled. Current workaround: [data-macro-modal="true"] { z-index: 10050 !important; }.
Discord thread: Macro editor opens behind the author's notes panel at narrow viewports
Discord thread link: https://discord.com/channels/1417099416812392641/1539645650478571590
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)
Discord thread transcript (2 messages)
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: