[PR #1194] [MERGED] Fix mobile conversation composer width #4970

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/1194
Author: @Xelvanis
Created: 5/25/2026
Status: ✅ Merged
Merged: 5/25/2026
Merged by: @Xelvanis

Base: refactor ← Head: fix/mobile-chatbar-input-width


📝 Commits (1)

  • c4148ed Fix mobile conversation composer width

📊 Changes

1 file changed (+22 additions, -15 deletions)

View changed files

📝 src/features/modes/conversation/components/ConversationInput.tsx (+22 -15)

📄 Description

Summary

  • Make the Conversation mobile composer wrap so the textarea gets a full-width row before the extra chat bar buttons.
  • Keep desktop/tablet composer order unchanged.
  • Preserve mobile DOM/focus order so the textarea is first visually and first for keyboard/screen-reader traversal.

Behavior changed

On narrow Conversation viewports, the message textarea no longer gets squeezed by the attach, quick switcher, GIF, speech, status, quick reply, and send buttons. The controls move to a second row while the textarea remains full width.

Primary files/modules touched

  • src/features/modes/conversation/components/ConversationInput.tsx

Impact / dependent areas reviewed

  • Conversation mode composer layout and mobile chat bar controls.
  • Desktop sm+ composer path remains inline.
  • Sibling roleplay/shared composer was not changed in this PR.

Verification

  • pnpm typecheck
  • git diff --check
  • Pixel WebView probe at 411 CSS px: textarea 360.9px wide inside a 385.9px composer, overflowX: 0.
  • Pixel WebView focus-order probe: first visible focusable composer element is the textarea.
  • Synthetic narrow WebView probes at 360px and 320px CSS width: no horizontal overflow.

Docs / changelog

  • No changelog update: this repo currently has no CHANGELOG.md.
  • No issue linked: this came from direct mobile QA feedback.

Remaining risk

  • Roleplay/shared chat input may have a similar narrow mobile layout pattern; left untouched to keep this PR scoped to the reproduced Conversation issue.

Summary by CodeRabbit

  • Style
    • Improved responsive layout for the conversation input bar across mobile and desktop viewports. Attachment button positioning optimized for different screen sizes, with better spacing and alignment on both mobile and desktop interfaces.

Review Change Stack


🔄 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/1194 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 5/25/2026 **Status:** ✅ Merged **Merged:** 5/25/2026 **Merged by:** [@Xelvanis](https://github.com/Xelvanis) **Base:** `refactor` ← **Head:** `fix/mobile-chatbar-input-width` --- ### 📝 Commits (1) - [`c4148ed`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c4148ed5b38e9a2febca7c1ed45a211dfa46ad47) Fix mobile conversation composer width ### 📊 Changes **1 file changed** (+22 additions, -15 deletions) <details> <summary>View changed files</summary> 📝 `src/features/modes/conversation/components/ConversationInput.tsx` (+22 -15) </details> ### 📄 Description ## Summary - Make the Conversation mobile composer wrap so the textarea gets a full-width row before the extra chat bar buttons. - Keep desktop/tablet composer order unchanged. - Preserve mobile DOM/focus order so the textarea is first visually and first for keyboard/screen-reader traversal. ## Behavior changed On narrow Conversation viewports, the message textarea no longer gets squeezed by the attach, quick switcher, GIF, speech, status, quick reply, and send buttons. The controls move to a second row while the textarea remains full width. ## Primary files/modules touched - `src/features/modes/conversation/components/ConversationInput.tsx` ## Impact / dependent areas reviewed - Conversation mode composer layout and mobile chat bar controls. - Desktop `sm+` composer path remains inline. - Sibling roleplay/shared composer was not changed in this PR. ## Verification - `pnpm typecheck` - `git diff --check` - Pixel WebView probe at 411 CSS px: textarea `360.9px` wide inside a `385.9px` composer, `overflowX: 0`. - Pixel WebView focus-order probe: first visible focusable composer element is the textarea. - Synthetic narrow WebView probes at 360px and 320px CSS width: no horizontal overflow. ## Docs / changelog - No changelog update: this repo currently has no `CHANGELOG.md`. - No issue linked: this came from direct mobile QA feedback. ## Remaining risk - Roleplay/shared chat input may have a similar narrow mobile layout pattern; left untouched to keep this PR scoped to the reproduced Conversation issue. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Style** * Improved responsive layout for the conversation input bar across mobile and desktop viewports. Attachment button positioning optimized for different screen sizes, with better spacing and alignment on both mobile and desktop interfaces. <!-- review_stack_entry_start --> [![Review Change Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/Pasta-Devs/Marinara-Engine/pull/1194?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack) <!-- review_stack_entry_end --> <!-- 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-22 04:12:07 +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#4970
No description provided.