[PR #1136] [MERGED] Fix mobile composer text input collapse #4939

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

📋 Pull Request Information

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

Base: main ← Head: hotfix/1.6.1-mobile-composer-input


📝 Commits (2)

  • 9ffabd6 fix: preserve mobile composer input
  • 379f859 fix: align mobile composer controls

📊 Changes

2 files changed (+6 additions, -5 deletions)

View changed files

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

📄 Description

Linked issue

No linked issue. This is a maintainer-approved mainline hotfix for the 1.6.1 release branch path; attach or open a follow-up issue before merge if the project requires one for tracking.

Why this change

  • On narrow mobile viewports, optional Conversation toolbar actions could consume the available flex row width and squeeze the message textarea until it appeared to be missing.
  • The first pass preserved the textarea, but a filled textarea could still leave the attach and mobile switcher controls visually floating beside the text instead of sitting with the action strip.

What changed

  • Allow the Conversation input bar to wrap on mobile while preserving the existing single-row layout at sm and larger breakpoints.
  • Put the textarea on the first mobile row and the composer controls on the row below it.
  • Let the right-side action group use the remaining mobile row width so the attach, switcher, GIF, mic, status, menu, and send controls align together instead of squeezing the textarea.
  • Add a CHANGELOG.md entry under 1.6.1 for the mobile composer hotfix.

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

Agent-run checks performed:

  • pnpm check passed locally after the initial fix.
  • pnpm check passed locally after the action-row alignment refinement.
  • pnpm version:check passed locally.
  • git diff --check passed locally.
  • Generated 390x844 mobile viewport screenshots for empty and paragraph-filled composer states using the local app styles.

Manual verification notes

  • Mobile browser viewport checked at 390x844 for an empty composer state.
  • Mobile browser viewport checked at 390x844 with paragraph-length text in the composer.
  • The generated screenshots show the textarea retains visible width and the toolbar actions sit together below it instead of squeezing the input away or floating beside the text.
  • Physical iOS Safari verification is still recommended before merging this hotfix.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Version/release files updated (only if this PR includes a version bump)

Release impact:

  • CHANGELOG.md updated for 1.6.1.
  • No version bump included.
  • No README, Android, installer, or configuration docs changes expected for this UI-only hotfix.

UI evidence (if applicable)

Screenshot 2026-05-24 183825

Summary by CodeRabbit

Bug Fixes

  • Fixed mobile chat experience where optional toolbar actions squeezed the message textarea until it disappeared on narrow phone viewports. The input area now properly adapts to small screens, ensuring the message textarea remains visible and functional across all device sizes.

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/1136 **Author:** [@Xelvanis](https://github.com/Xelvanis) **Created:** 5/24/2026 **Status:** ✅ Merged **Merged:** 5/24/2026 **Merged by:** [@Xelvanis](https://github.com/Xelvanis) **Base:** `main` ← **Head:** `hotfix/1.6.1-mobile-composer-input` --- ### 📝 Commits (2) - [`9ffabd6`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9ffabd6d642242da6756ab6031acc27b5e0102d2) fix: preserve mobile composer input - [`379f859`](https://github.com/Pasta-Devs/Marinara-Engine/commit/379f859fbaa3159bad2f480464ca9d305490fca1) fix: align mobile composer controls ### 📊 Changes **2 files changed** (+6 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `packages/client/src/components/chat/ConversationInput.tsx` (+5 -5) </details> ### 📄 Description ## Linked issue No linked issue. This is a maintainer-approved mainline hotfix for the 1.6.1 release branch path; attach or open a follow-up issue before merge if the project requires one for tracking. ## Why this change - On narrow mobile viewports, optional Conversation toolbar actions could consume the available flex row width and squeeze the message textarea until it appeared to be missing. - The first pass preserved the textarea, but a filled textarea could still leave the attach and mobile switcher controls visually floating beside the text instead of sitting with the action strip. ## What changed - Allow the Conversation input bar to wrap on mobile while preserving the existing single-row layout at `sm` and larger breakpoints. - Put the textarea on the first mobile row and the composer controls on the row below it. - Let the right-side action group use the remaining mobile row width so the attach, switcher, GIF, mic, status, menu, and send controls align together instead of squeezing the textarea. - Add a `CHANGELOG.md` entry under `1.6.1` for the mobile composer hotfix. ## Validation - [x] `pnpm check` passes locally - [ ] 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` Agent-run checks performed: - `pnpm check` passed locally after the initial fix. - `pnpm check` passed locally after the action-row alignment refinement. - `pnpm version:check` passed locally. - `git diff --check` passed locally. - Generated 390x844 mobile viewport screenshots for empty and paragraph-filled composer states using the local app styles. ### Manual verification notes - Mobile browser viewport checked at 390x844 for an empty composer state. - Mobile browser viewport checked at 390x844 with paragraph-length text in the composer. - The generated screenshots show the textarea retains visible width and the toolbar actions sit together below it instead of squeezing the input away or floating beside the text. - Physical iOS Safari verification is still recommended before merging this hotfix. ## Docs and release impact - [ ] No docs changes needed - [x] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Version/release files updated (only if this PR includes a version bump) Release impact: - `CHANGELOG.md` updated for `1.6.1`. - No version bump included. - No README, Android, installer, or configuration docs changes expected for this UI-only hotfix. ## UI evidence (if applicable) <img width="390" height="846" alt="Screenshot 2026-05-24 183825" src="https://github.com/user-attachments/assets/461472ab-b8ef-44e3-97f4-26302e7e1be4" /> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Bug Fixes * Fixed mobile chat experience where optional toolbar actions squeezed the message textarea until it disappeared on narrow phone viewports. The input area now properly adapts to small screens, ensuring the message textarea remains visible and functional across all device sizes. <!-- 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/1136?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:11:52 +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#4939
No description provided.