[PR #2546] [MERGED] fix(mobile): recent chat pill overflow, chibi spacing, FAQ placement #5647

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2546
Author: @Gunterlie
Created: 6/12/2026
Status: ✅ Merged
Merged: 6/13/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/tiny-frontpage-mobile-ui-fixes-2


📝 Commits (3)

  • 4e7e7dc fix(mobile): recent chat pill overflow, chibi spacing, FAQ placement
  • 7fc4e96 fix(ui): sync HomeFaq state across breakpoints and fix pills scroll clipping
  • 2e89fb8 fix(ui): fix TS errors from HomeFaq controlled-state wrappers

📊 Changes

3 files changed (+35 additions, -9 deletions)

View changed files

📝 packages/client/src/components/chat/HomeFaq.tsx (+25 -6)
📝 packages/client/src/components/chat/HomeProfessorMariChat.tsx (+9 -2)
📝 packages/client/src/components/chat/RecentChats.tsx (+1 -1)

📄 Description

Linked issue

Closes nothing, irked me.

Why this change

Three extremely tiny (+8,-3) mobile UI issues on the frontpage:

  • Recent chat pills overflowed the viewport left/right when three chats were shown
  • The chibi sprite (intentionally overflowing above the card) was clipping into the recent chat pills above it on mobile
  • The FAQ accordion felt out of place on top of the chat it makes more sense below the entire Ask Professor Mari block ON MOBILE ONLY

What changed

  • RecentChats.tsx — added overflow-x-auto to the pills row so they scroll horizontally instead of breaking out of the viewport
  • HomeProfessorMariChat.tsx — added mt-10 sm:mt-0 to the section so the overflowing chibi has headroom on mobile without touching the pills above; desktop layout unaffected
  • HomeProfessorMariChat.tsx — FAQ hidden inside the left column on mobile (hidden sm:block) and re-rendered below the grid (sm:hidden) so it appears under the full section on small screens; desktop two-column layout unchanged

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

  • Manually verify on a 390×844 mobile viewport:
    • Recent chat pills scroll horizontally with 3 chats present and do not clip past the viewport
    • Chibi sprite overflows above the card without covering the pills row
    • FAQ accordion appears below the Ask Professor Mari section, not inside the left column
  • Verify on desktop (>640px) that the two-column layout looks identical to before

Docs and release impact

  • No docs changes needed

UI evidence (if applicable)

before
Bildschirmfoto 2026-06-12 um 18 56 06

after, slightly scrolled down so you see faq is now below
Bildschirmfoto 2026-06-12 um 18 46 49

Summary by CodeRabbit

  • Style
    • Chat interface layout refined with responsive design improvements to optimize FAQ visibility and placement across mobile and desktop devices
    • Recent chats section now features horizontal scrolling capability to enhance navigation and improve usability on mobile devices and smaller viewports

🔄 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/2546 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 6/12/2026 **Status:** ✅ Merged **Merged:** 6/13/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/tiny-frontpage-mobile-ui-fixes-2` --- ### 📝 Commits (3) - [`4e7e7dc`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4e7e7dcb0ff144178cef72ae8b10f2b593edc016) fix(mobile): recent chat pill overflow, chibi spacing, FAQ placement - [`7fc4e96`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7fc4e967b7cb80136ca7fc6207285c59a5623fdb) fix(ui): sync HomeFaq state across breakpoints and fix pills scroll clipping - [`2e89fb8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2e89fb8ffe2383e51abf9c10de01001b30684a79) fix(ui): fix TS errors from HomeFaq controlled-state wrappers ### 📊 Changes **3 files changed** (+35 additions, -9 deletions) <details> <summary>View changed files</summary> 📝 `packages/client/src/components/chat/HomeFaq.tsx` (+25 -6) 📝 `packages/client/src/components/chat/HomeProfessorMariChat.tsx` (+9 -2) 📝 `packages/client/src/components/chat/RecentChats.tsx` (+1 -1) </details> ### 📄 Description ## Linked issue Closes nothing, irked me. ## Why this change Three extremely tiny (+8,-3) mobile UI issues on the frontpage: - Recent chat pills overflowed the viewport left/right when three chats were shown - The chibi sprite (intentionally overflowing above the card) was clipping into the recent chat pills above it on mobile - The FAQ accordion felt out of place on top of the chat it makes more sense below the entire Ask Professor Mari block ON MOBILE ONLY ## What changed - `RecentChats.tsx` — added `overflow-x-auto` to the pills row so they scroll horizontally instead of breaking out of the viewport - `HomeProfessorMariChat.tsx` — added `mt-10 sm:mt-0` to the section so the overflowing chibi has headroom on mobile without touching the pills above; desktop layout unaffected - `HomeProfessorMariChat.tsx` — FAQ hidden inside the left column on mobile (`hidden sm:block`) and re-rendered below the grid (`sm:hidden`) so it appears under the full section on small screens; desktop two-column layout unchanged ## 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 - Manually verify on a 390×844 mobile viewport: - Recent chat pills scroll horizontally with 3 chats present and do not clip past the viewport - Chibi sprite overflows above the card without covering the pills row - FAQ accordion appears below the Ask Professor Mari section, not inside the left column - Verify on desktop (>640px) that the two-column layout looks identical to before ## Docs and release impact - [x] No docs changes needed ## UI evidence (if applicable) before <img width="571" height="983" alt="Bildschirmfoto 2026-06-12 um 18 56 06" src="https://github.com/user-attachments/assets/0fcb4c9b-f915-4da0-813b-96e5f09914d9" /> after, slightly scrolled down so you see faq is now below <img width="568" height="985" alt="Bildschirmfoto 2026-06-12 um 18 46 49" src="https://github.com/user-attachments/assets/42684680-06d0-478d-8673-b0760c064de4" /> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Style** * Chat interface layout refined with responsive design improvements to optimize FAQ visibility and placement across mobile and desktop devices * Recent chats section now features horizontal scrolling capability to enhance navigation and improve usability on mobile devices and smaller viewports <!-- 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:18:06 +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#5647
No description provided.