[PR #2080] [MERGED] fix: expand QuickStart cards to full width on mobile #5423

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/2080
Author: @Gunterlie
Created: 6/3/2026
Status: ✅ Merged
Merged: 6/3/2026
Merged by: @cha1latte

Base: refactor ← Head: fix/mobile-quickstart-fullwidth


📝 Commits (2)

  • e8f4681 fix: expand QuickStart cards to full width on mobile
  • e297d3f ci: trigger re-run after PR body update

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 src/features/modes/router/components/ModeHomeSurface.tsx (+2 -2)

📄 Description

Linked issue

Closes #2077

Why this change

  • The three QuickStart cards had a fixed w-20 (80 px) width on all screen sizes.
  • On a 390 px phone the cards occupied only ~260 px, leaving large dead margins on both sides and reducing tap target size unnecessarily.

What changed

  • Container (ModeHomeSurface.tsx): flex flex-wrap justify-center → grid w-full grid-cols-3 gap-2 px-3 on mobile. Cards stretch to fill available width with consistent side padding matching RecentChats and DiscoverPanel. Desktop reverts to sm:flex sm:w-auto sm:justify-center sm:gap-3 sm:px-0 (behaviour unchanged).
  • Card width: w-20 → w-full on mobile; sm:w-28 on desktop (unchanged).

Refactor impact

Primary owner: chat mode / mode router

Impact areas reviewed:

  • Mode home surface QuickStart card layout

Boundary notes:

  • None — two CSS class changes in ModeHomeSurface.tsx. No store, catalog, or shared API changes.

Pressure points touched:

  • ModeHomeSurface — layout change to QuickStart card container and individual card width classes.

Validation

  • Matching validation command passes locally (for example pnpm typecheck, pnpm build, pnpm check:architecture, pnpm check:docs, or full pnpm check when warranted)
  • Full pnpm check passes before PR push/handoff
  • Human/manual validation completed by contributor or reviewer

Manual verification notes

  • Verified at 390 px: three cards fill full width with consistent side padding.
  • Verified on desktop: three fixed-width centered cards, layout unchanged.
  • All three cards tappable and navigate to the correct mode.

Feature Discoverability

Check exactly one:

  • Updated src/features/shell/discovery/ because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool.
  • N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find.

Reason:

  • Visual polish / mobile usability fix — no new feature surface added.

Docs and release impact

  • No docs changes needed

UI evidence

before
3buttons before
after
3 buttons after


🔄 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/2080 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 6/3/2026 **Status:** ✅ Merged **Merged:** 6/3/2026 **Merged by:** [@cha1latte](https://github.com/cha1latte) **Base:** `refactor` ← **Head:** `fix/mobile-quickstart-fullwidth` --- ### 📝 Commits (2) - [`e8f4681`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e8f468158e46d7e21938a4ebe67720a667578de4) fix: expand QuickStart cards to full width on mobile - [`e297d3f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/e297d3f39c46f3d7cdf9b476b2c95048d343530b) ci: trigger re-run after PR body update ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `src/features/modes/router/components/ModeHomeSurface.tsx` (+2 -2) </details> ### 📄 Description ## Linked issue Closes #2077 ## Why this change - The three QuickStart cards had a fixed `w-20` (80 px) width on all screen sizes. - On a 390 px phone the cards occupied only ~260 px, leaving large dead margins on both sides and reducing tap target size unnecessarily. ## What changed - **Container (`ModeHomeSurface.tsx`):** `flex flex-wrap justify-center` → `grid w-full grid-cols-3 gap-2 px-3` on mobile. Cards stretch to fill available width with consistent side padding matching RecentChats and DiscoverPanel. Desktop reverts to `sm:flex sm:w-auto sm:justify-center sm:gap-3 sm:px-0` (behaviour unchanged). - **Card width:** `w-20` → `w-full` on mobile; `sm:w-28` on desktop (unchanged). ## Refactor impact Primary owner: chat mode / mode router Impact areas reviewed: - Mode home surface QuickStart card layout Boundary notes: - None — two CSS class changes in `ModeHomeSurface.tsx`. No store, catalog, or shared API changes. Pressure points touched: - `ModeHomeSurface` — layout change to QuickStart card container and individual card width classes. ## Validation - [x] Matching validation command passes locally (for example `pnpm typecheck`, `pnpm build`, `pnpm check:architecture`, `pnpm check:docs`, or full `pnpm check` when warranted) - [x] Full `pnpm check` passes before PR push/handoff - [x] Human/manual validation completed by contributor or reviewer ### Manual verification notes - Verified at 390 px: three cards fill full width with consistent side padding. - Verified on desktop: three fixed-width centered cards, layout unchanged. - All three cards tappable and navigate to the correct mode. ## Feature Discoverability Check exactly one: - [ ] Updated `src/features/shell/discovery/` because this PR adds or materially changes a user-discoverable feature, workflow, setting, mode, panel, import path, agent, media capability, or advanced tool. - [x] N/A because this PR is only a bugfix, refactor, test, docs, internal wiring, visual polish, copy edit, or compatibility fix and does not add a new thing users need to find. Reason: - Visual polish / mobile usability fix — no new feature surface added. ## Docs and release impact - [x] No docs changes needed ## UI evidence before <img width="426" height="103" alt="3buttons before" src="https://github.com/user-attachments/assets/e2441a43-88dd-4edf-bcf7-d9ef8849ec42" /> after <img width="419" height="103" alt="3 buttons after" src="https://github.com/user-attachments/assets/abc4393c-893d-4d99-838b-262345334bb4" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:16:10 +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#5423
No description provided.