[PR #5661] [MERGED] fix(chat): bring the group trigger-response and send icons closer in the mobile Roleplay composer #6867

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5661
Author: @Romuromylus
Created: 8/30/2026
Status: ✅ Merged
Merged: 8/30/2026
Merged by: @Romuromylus

Base: staging ← Head: fix/5649-group-trigger-send-spacing


📝 Commits (1)

  • 6baaeda fix(chat): shrink oversized group-trigger and translate buttons in the roleplay composer on mobile

📊 Changes

2 files changed (+3 additions, -2 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 packages/client/src/components/chat/ChatInput.tsx (+2 -2)

📄 Description

Linked issue

Closes #5649

Why this change

  • In Roleplay mode on a phone, the group-chat "trigger character response" icon and the send icon in the message composer sit noticeably far apart, and the composer's typing area is narrower than it needs to be (reported from a group chat on mobile, see the issue screenshot).
  • Root cause: the character-picker (trigger response) button and the translate-draft button use 44px (h-11 w-11) footprints on mobile, while every other button in the same composer row — attach and send — uses 36px (h-9 w-9). The extra dead padding around the 1rem icons reads as a gap and eats horizontal space that could go to the textarea.

What changed

  • packages/client/src/components/chat/ChatInput.tsx: the character-picker and translate-draft buttons now use h-9 w-9 on mobile, matching the attach and send buttons in the same row. Desktop sizing (sm:h-8 sm:w-8) is untouched, and the flex gap-1 between buttons is unchanged.
  • CHANGELOG.md: entry under Unreleased › Fixed.

Measured on a 375px viewport with a two-character Roleplay group chat (individual response mode): the trigger button shrinks 44px → 36px, the visible icon-to-icon gap between trigger and send narrows by ~9px (~27%), and the textarea gains the freed width. The Conversation-mode composer is unaffected (its equivalent button is desktop-only). The opt-in speech-to-text and quick-reply buttons (shared components rendered in this row only when those features are enabled) still use a 44px mobile footprint — left out of scope here since they also serve the Conversation composer; happy to align them in a follow-up if wanted.

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

  • Reproduced on a local dev build at a 375×812 emulated mobile viewport: opened a Roleplay group chat with two characters and groupChatMode: individual, typed a multi-line draft, and confirmed the trigger and send icons now sit closer together with the textarea taking the recovered width; before/after measured via the buttons' bounding rects.
  • Verified the character-picker popover still opens from the smaller button and the send button still enables/disables correctly with draft content.
  • Manually verify on a real phone that the two icons feel comfortably tappable at the new 36px size (same size the send button has always had).

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] 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)

  • The issue's screenshot shows the reported spacing. After the change, the trigger icon moves ~8px closer to the send icon and the freed width goes to the textarea (376px-viewport measurements: trigger button 44→36px wide, textarea 140→149px in the repro chat).

Summary by CodeRabbit

  • Bug Fixes
    • Improved the mobile Roleplay composer layout by resizing character-picker and draft-translation buttons to match the attach and send buttons.
    • Increased available typing space on mobile.
  • Documentation
    • Added a release note for version 2.4.5.

🔄 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/5661 **Author:** [@Romuromylus](https://github.com/Romuromylus) **Created:** 8/30/2026 **Status:** ✅ Merged **Merged:** 8/30/2026 **Merged by:** [@Romuromylus](https://github.com/Romuromylus) **Base:** `staging` ← **Head:** `fix/5649-group-trigger-send-spacing` --- ### 📝 Commits (1) - [`6baaeda`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6baaeda1060b1afa6dbc8d21eb1abfa249ab42c1) fix(chat): shrink oversized group-trigger and translate buttons in the roleplay composer on mobile ### 📊 Changes **2 files changed** (+3 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `packages/client/src/components/chat/ChatInput.tsx` (+2 -2) </details> ### 📄 Description ## Linked issue Closes #5649 ## Why this change - In Roleplay mode on a phone, the group-chat "trigger character response" icon and the send icon in the message composer sit noticeably far apart, and the composer's typing area is narrower than it needs to be (reported from a group chat on mobile, see the issue screenshot). - Root cause: the character-picker (trigger response) button and the translate-draft button use 44px (`h-11 w-11`) footprints on mobile, while every other button in the same composer row — attach and send — uses 36px (`h-9 w-9`). The extra dead padding around the 1rem icons reads as a gap and eats horizontal space that could go to the textarea. ## What changed - `packages/client/src/components/chat/ChatInput.tsx`: the character-picker and translate-draft buttons now use `h-9 w-9` on mobile, matching the attach and send buttons in the same row. Desktop sizing (`sm:h-8 sm:w-8`) is untouched, and the flex `gap-1` between buttons is unchanged. - `CHANGELOG.md`: entry under Unreleased › Fixed. Measured on a 375px viewport with a two-character Roleplay group chat (individual response mode): the trigger button shrinks 44px → 36px, the visible icon-to-icon gap between trigger and send narrows by ~9px (~27%), and the textarea gains the freed width. The Conversation-mode composer is unaffected (its equivalent button is desktop-only). The opt-in speech-to-text and quick-reply buttons (shared components rendered in this row only when those features are enabled) still use a 44px mobile footprint — left out of scope here since they also serve the Conversation composer; happy to align them in a follow-up if wanted. ## Validation - [x] `pnpm check` passes locally - [x] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [x] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [x] Above manual verification completed (describe below) - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes - Reproduced on a local dev build at a 375×812 emulated mobile viewport: opened a Roleplay group chat with two characters and `groupChatMode: individual`, typed a multi-line draft, and confirmed the trigger and send icons now sit closer together with the textarea taking the recovered width; before/after measured via the buttons' bounding rects. - Verified the character-picker popover still opens from the smaller button and the send button still enables/disables correctly with draft content. - Manually verify on a real phone that the two icons feel comfortably tappable at the new 36px size (same size the send button has always had). ## Docs and release impact - [ ] No docs changes needed - [x] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` 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) - The issue's screenshot shows the reported spacing. After the change, the trigger icon moves ~8px closer to the send icon and the freed width goes to the textarea (376px-viewport measurements: trigger button 44→36px wide, textarea 140→149px in the repro chat). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Improved the mobile Roleplay composer layout by resizing character-picker and draft-translation buttons to match the attach and send buttons. - Increased available typing space on mobile. - **Documentation** - Added a release note for version 2.4.5. <!-- 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:14:26 +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#6867
No description provided.