[GH-ISSUE #6092] [Issue]: Roleplay tray buttons are wrapped in unexpected div elements #3377

Closed
opened 2026-10-21 06:02:28 +07:00 by bsakaguchi · 3 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

The "Peek prompt" and "Hide from AI" buttons in the roleplay button tray are wrapped by additional div elements inside .mari-message-actions. This makes them inconsistent with the other buttons and harder to target with custom CSS.

Expected behavior

All roleplay tray actions should use consistent button elements with their corresponding classes, without unnecessary wrapper elements that interfere with styling and targeting.

Actual behavior

The "Peek prompt" and "Hide from AI" actions are wrapped by div elements, while the other actions are direct button elements with their corresponding classes.

Steps to reproduce

  1. Open a roleplay message that displays the button tray.
  2. Inspect the elements inside the .mari-message-actions container.
  3. Compare the DOM structure of the "Peek prompt" and "Hide from AI" actions with the other action buttons.

Environment

  • Marinara Engine version: Not provided
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Not provided

Logs, screenshots, or video

Attached video: ttf1jxm.mp4 (https://cdn.discordapp.com/attachments/1548367919308734504/1548367921477329098/ttf1jxm.mp4?ex=6aa6cd7f&is=6aa57bff&hm=1786992d9132b4729bb4d0faf99e167561451d7c064a5e7b896db63d7ec99e49&). Attached text file: n1b8w6x.txt (https://cdn.discordapp.com/attachments/1548367919308734504/1548367991219949648/n1b8w6x.txt?ex=6aa6cd90&is=6aa57bff&hm=afab57e2070b24247e5ee953093eddeb2fd600bc44611ee63ac43c874a9f9c8f).

Additional context

The inconsistent markup makes targeting and styling these actions with custom CSS more difficult.

Discord thread: Some buttons in the roleplay button tray are wrapped by a div tag
Discord thread link: https://discord.com/channels/1417099416812392641/1548367919308734504
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (6 messages)
[2026-09-12T16:21:19.248Z] Oddly P3P FeMC shaped Artus: # HORRIBLE UI PLS FIX!!!!!

The problem in question lies with the button tray inside the .mari-message-actions div, to be specific, the "Peek prompt" and "Hide from AI" buttons are wrapped by another div, unlike the rest, which are normal button elements with their corresponding classes.

This makes targeting the elements and styling them with custom CSS a little bit of a headache.
[attached file: ttf1jxm.mp4 — https://cdn.discordapp.com/attachments/1548367919308734504/1548367921477329098/ttf1jxm.mp4?ex=6aa6cd7f&is=6aa57bff&hm=1786992d9132b4729bb4d0faf99e167561451d7c064a5e7b896db63d7ec99e49&]
[Discord message: https://discord.com/channels/1417099416812392641/1548367919308734504/1548367919308734504]

[2026-09-12T16:21:21.182Z] Professor Mari [bot]: Howdy!

Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.**

**Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab:

`Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.`

If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here:

`Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version`

Thank you, this will help tremendously.

This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case.

Cheers!
[Discord message: https://discord.com/channels/1417099416812392641/1548367919308734504/1548367927420387339]

[2026-09-12T16:21:36.497Z] Oddly P3P FeMC shaped Artus: [attached file: n1b8w6x.txt — https://cdn.discordapp.com/attachments/1548367919308734504/1548367991219949648/n1b8w6x.txt?ex=6aa6cd90&is=6aa57c10&hm=afab57e2070b24247e5ee953093eddeb2fd600bc44611ee63ac43c874a9f9c8f&]
[Discord message: https://discord.com/channels/1417099416812392641/1548367919308734504/1548367991656423454]

[2026-09-12T16:22:44.073Z] Marinara: Thank you pookie.
[Discord message: https://discord.com/channels/1417099416812392641/1548367919308734504/1548368275090579497]

[2026-09-12T16:22:56.358Z] Marinara: I know the UI is terrible/slop/wort thing ever.
[Discord message: https://discord.com/channels/1417099416812392641/1548367919308734504/1548368326617468959]

[2026-09-12T16:23:00.781Z] Marinara: :cry_cat:
[Discord message: https://discord.com/channels/1417099416812392641/1548367919308734504/1548368345168875583]

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 (Sep 12, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6092 Originally assigned to: @SpicyMarinara on GitHub. ## Summary The "Peek prompt" and "Hide from AI" buttons in the roleplay button tray are wrapped by additional div elements inside .mari-message-actions. This makes them inconsistent with the other buttons and harder to target with custom CSS. ## Expected behavior All roleplay tray actions should use consistent button elements with their corresponding classes, without unnecessary wrapper elements that interfere with styling and targeting. ## Actual behavior The "Peek prompt" and "Hide from AI" actions are wrapped by div elements, while the other actions are direct button elements with their corresponding classes. ## Steps to reproduce 1. Open a roleplay message that displays the button tray. 2. Inspect the elements inside the .mari-message-actions container. 3. Compare the DOM structure of the "Peek prompt" and "Hide from AI" actions with the other action buttons. ## Environment - Marinara Engine version: Not provided - Install type: Not provided - OS + version: Not provided - Browser or app shell: Not provided ## Logs, screenshots, or video Attached video: ttf1jxm.mp4 (https://cdn.discordapp.com/attachments/1548367919308734504/1548367921477329098/ttf1jxm.mp4?ex=6aa6cd7f&is=6aa57bff&hm=1786992d9132b4729bb4d0faf99e167561451d7c064a5e7b896db63d7ec99e49&). Attached text file: n1b8w6x.txt (https://cdn.discordapp.com/attachments/1548367919308734504/1548367991219949648/n1b8w6x.txt?ex=6aa6cd90&is=6aa57bff&hm=afab57e2070b24247e5ee953093eddeb2fd600bc44611ee63ac43c874a9f9c8f). ## Additional context The inconsistent markup makes targeting and styling these actions with custom CSS more difficult. Discord thread: Some buttons in the roleplay button tray are wrapped by a div tag Discord thread link: https://discord.com/channels/1417099416812392641/1548367919308734504 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (6 messages)</summary> ```text [2026-09-12T16:21:19.248Z] Oddly P3P FeMC shaped Artus: # HORRIBLE UI PLS FIX!!!!! The problem in question lies with the button tray inside the .mari-message-actions div, to be specific, the "Peek prompt" and "Hide from AI" buttons are wrapped by another div, unlike the rest, which are normal button elements with their corresponding classes. This makes targeting the elements and styling them with custom CSS a little bit of a headache. [attached file: ttf1jxm.mp4 — https://cdn.discordapp.com/attachments/1548367919308734504/1548367921477329098/ttf1jxm.mp4?ex=6aa6cd7f&is=6aa57bff&hm=1786992d9132b4729bb4d0faf99e167561451d7c064a5e7b896db63d7ec99e49&] [Discord message: https://discord.com/channels/1417099416812392641/1548367919308734504/1548367919308734504] [2026-09-12T16:21:21.182Z] Professor Mari [bot]: Howdy! Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.** **Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab: `Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.` If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here: `Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version` Thank you, this will help tremendously. This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case. Cheers! [Discord message: https://discord.com/channels/1417099416812392641/1548367919308734504/1548367927420387339] [2026-09-12T16:21:36.497Z] Oddly P3P FeMC shaped Artus: [attached file: n1b8w6x.txt — https://cdn.discordapp.com/attachments/1548367919308734504/1548367991219949648/n1b8w6x.txt?ex=6aa6cd90&is=6aa57c10&hm=afab57e2070b24247e5ee953093eddeb2fd600bc44611ee63ac43c874a9f9c8f&] [Discord message: https://discord.com/channels/1417099416812392641/1548367919308734504/1548367991656423454] [2026-09-12T16:22:44.073Z] Marinara: Thank you pookie. [Discord message: https://discord.com/channels/1417099416812392641/1548367919308734504/1548368275090579497] [2026-09-12T16:22:56.358Z] Marinara: I know the UI is terrible/slop/wort thing ever. [Discord message: https://discord.com/channels/1417099416812392641/1548367919308734504/1548368326617468959] [2026-09-12T16:23:00.781Z] Marinara: :cry_cat: [Discord message: https://discord.com/channels/1417099416812392641/1548367919308734504/1548368345168875583] ``` </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 06:02:28 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Sep 12, 2026):

SpicyMarinara / Codex is handling this in draft PR #6095 as part of the requested issue sweep.

<!-- gh-comment-id:5647245621 --> @SpicyMarinara commented on GitHub (Sep 12, 2026): SpicyMarinara / Codex is handling this in draft PR #6095 as part of the requested issue sweep.
Author
Owner

@SpicyMarinara commented on GitHub (Sep 12, 2026):

The buttons in question are actually "mark as new start" and "hide from AI".

<!-- gh-comment-id:5647263492 --> @SpicyMarinara commented on GitHub (Sep 12, 2026): The buttons in question are actually "mark as new start" and "hide from AI".
Author
Owner

@SpicyMarinara commented on GitHub (Sep 12, 2026):

Fixed on staging in #6095.

Roleplay recipient actions are direct buttons in the action tray. Their menus are positioned outside the tray so they remain visible, with outside-click/Escape dismissal and keyboard focus restoration. Desktop Chromium, Android Chromium, and iPhone WebKit checks pass.

<!-- gh-comment-id:5647849636 --> @SpicyMarinara commented on GitHub (Sep 12, 2026): Fixed on staging in #6095. Roleplay recipient actions are direct buttons in the action tray. Their menus are positioned outside the tray so they remain visible, with outside-click/Escape dismissal and keyboard focus restoration. Desktop Chromium, Android Chromium, and iPhone WebKit checks pass.
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#3377
No description provided.