[PR #4531] [MERGED] Fix Quick Replies overlay clipping and delete styling #6411

Closed
opened 2026-10-23 04:10:11 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4531
Author: @SpicyMarinara
Created: 8/3/2026
Status: ✅ Merged
Merged: 8/3/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/quick-replies-overlay


📝 Commits (2)

  • 73222fc Fix Quick Replies overlay and delete styling
  • 1b3a413 fix(client): address quick reply menu review

📊 Changes

2 files changed (+147 additions, -72 deletions)

View changed files

📝 packages/client/src/components/chat/QuickReplyMenu.tsx (+146 -71)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+1 -1)

📄 Description

Important

Contributions target staging. Only SpicyMarinara may promote this repository's staging branch or a same-repository hotfix/* branch to main.
Outside and first-time contributors also require an approving review from SpicyMarinara.

Linked issue

No linked issue. This bug was reported directly by the maintainer with a screenshot.

Why this change

  • The multi-action Quick Replies rail rendered inside the chat composer's overflow and stacking contexts, so Roleplay mode clipped it at the input border instead of displaying it above the chat.
  • Custom Quick Reply delete buttons used the destructive red token even though they are compact settings controls that should follow the active accent.

What changed

  • Render the opened Quick Replies rail through a document.body portal with fixed, viewport-clamped coordinates above its trigger.
  • Reposition the rail on viewport resize and ancestor scrolling while preserving its existing animation, keyboard navigation, outside-click dismissal, and action behavior.
  • Style the custom Quick Reply trash icon with the active primary accent token.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • pnpm --filter @marinara-engine/client exec eslint src/components/chat/QuickReplyMenu.tsx src/components/panels/SettingsPanel.tsx
  • pnpm --filter @marinara-engine/client build
  • Exercised the Roleplay Quick Replies menu against the local app at 1280×800 and 390×844. Confirmed the menu is portaled under document.body, uses fixed positioning at z-index: 9999, and remains entirely above its trigger at both viewport sizes.
  • Confirmed the custom Quick Reply delete control resolves to --primary instead of --destructive in the tested theme.
  • The in-app browser connector failed during initialization, so the live UI verification used the repository's installed Playwright runtime against the same local development server.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] <paths> follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

UI evidence (if applicable)

  • Maintainer-provided screenshot captured the original clipping.
  • Desktop and mobile after-fix captures were inspected locally during verification.

Summary by CodeRabbit

  • Bug Fixes

    • Improved quick reply menu positioning when opening, scrolling, or resizing the page.
    • Prevented the menu from appearing in an incorrect location while positioning loads.
    • Improved outside-click behavior for the quick reply menu.
  • Style

    • Updated the quick reply removal button to use the primary color.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/4531 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 8/3/2026 **Status:** ✅ Merged **Merged:** 8/3/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/quick-replies-overlay` --- ### 📝 Commits (2) - [`73222fc`](https://github.com/Pasta-Devs/Marinara-Engine/commit/73222fc5a421ea68de9b397ffc01817f33b47f85) Fix Quick Replies overlay and delete styling - [`1b3a413`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1b3a41342dacce1d8f44dea53ba75445ed681f46) fix(client): address quick reply menu review ### 📊 Changes **2 files changed** (+147 additions, -72 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/QuickReplyMenu.tsx` (+146 -71) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+1 -1) </details> ### 📄 Description > [!IMPORTANT] > Contributions target `staging`. Only `SpicyMarinara` may promote this repository's `staging` branch or a same-repository `hotfix/*` branch to `main`. > Outside and first-time contributors also require an approving review from `SpicyMarinara`. ## Linked issue No linked issue. This bug was reported directly by the maintainer with a screenshot. ## Why this change - The multi-action Quick Replies rail rendered inside the chat composer's overflow and stacking contexts, so Roleplay mode clipped it at the input border instead of displaying it above the chat. - Custom Quick Reply delete buttons used the destructive red token even though they are compact settings controls that should follow the active accent. ## What changed - Render the opened Quick Replies rail through a `document.body` portal with fixed, viewport-clamped coordinates above its trigger. - Reposition the rail on viewport resize and ancestor scrolling while preserving its existing animation, keyboard navigation, outside-click dismissal, and action behavior. - Style the custom Quick Reply trash icon with the active primary accent token. ## Validation - [ ] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [ ] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [ ] Above manual verification completed (describe below) - [ ] Read and followed `CONTRIBUTING.md` ### Manual verification notes - `pnpm --filter @marinara-engine/client exec eslint src/components/chat/QuickReplyMenu.tsx src/components/panels/SettingsPanel.tsx` - `pnpm --filter @marinara-engine/client build` - Exercised the Roleplay Quick Replies menu against the local app at 1280×800 and 390×844. Confirmed the menu is portaled under `document.body`, uses fixed positioning at `z-index: 9999`, and remains entirely above its trigger at both viewport sizes. - Confirmed the custom Quick Reply delete control resolves to `--primary` instead of `--destructive` in the tested theme. - The in-app browser connector failed during initialization, so the live UI verification used the repository's installed Playwright runtime against the same local development server. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n] <paths>` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) ## UI evidence (if applicable) - Maintainer-provided screenshot captured the original clipping. - Desktop and mobile after-fix captures were inspected locally during verification. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved quick reply menu positioning when opening, scrolling, or resizing the page. * Prevented the menu from appearing in an incorrect location while positioning loads. * Improved outside-click behavior for the quick reply menu. * **Style** * Updated the quick reply removal button to use the primary color. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:10:11 +07:00
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#6411
No description provided.