[PR #2078] [MERGED] fix: prevent DiscoverPanel from overflowing viewport on mobile #5422

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/2078
Author: @Gunterlie
Created: 6/3/2026
Status: ✅ Merged
Merged: 6/3/2026
Merged by: @cha1latte

Base: refactor ← Head: fix/mobile-discover-panel-overflow


📝 Commits (1)

  • c32f1db fix: prevent DiscoverPanel from overflowing viewport on mobile

📊 Changes

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

View changed files

📝 src/features/shell/discovery/components/DiscoverPanel.tsx (+1 -1)

📄 Description

Linked issue

Closes #2081

Why this change

  • On a 390 px screen the Discover Marinara panel expanded beyond the container width, triggering horizontal scroll.
  • min-h-full on the outer div forced the panel to fill the full viewport height even when content was short, leaving a large blank area below.

What changed

  • Added w-full to the outer div of DiscoverPanel — constrains the panel to its container width on mobile.
  • Removed min-h-full — panel height now follows content instead of forcing full-height fill.

Refactor impact

Primary owner: app shell / discovery panel

Impact areas reviewed:

  • Discovery panel rendering on mobile viewports

Boundary notes:

  • None — isolated to a single CSS class change in the DiscoverPanel component.

Pressure points touched:

  • None

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 visually at 390 px (iOS 26, WKWebView): panel no longer overflows, no blank space below when few results shown.

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 / bugfix only — no new feature surface.

Docs and release impact

  • No docs changes needed

UI evidence

before
discover overflow before
after
discover 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/2078 **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-discover-panel-overflow` --- ### 📝 Commits (1) - [`c32f1db`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c32f1dbf73b7603f7ec429d801d33cbb730c56d2) fix: prevent DiscoverPanel from overflowing viewport on mobile ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/features/shell/discovery/components/DiscoverPanel.tsx` (+1 -1) </details> ### 📄 Description ## Linked issue Closes #2081 ## Why this change - On a 390 px screen the Discover Marinara panel expanded beyond the container width, triggering horizontal scroll. - `min-h-full` on the outer div forced the panel to fill the full viewport height even when content was short, leaving a large blank area below. ## What changed - Added `w-full` to the outer div of `DiscoverPanel` — constrains the panel to its container width on mobile. - Removed `min-h-full` — panel height now follows content instead of forcing full-height fill. ## Refactor impact Primary owner: app shell / discovery panel Impact areas reviewed: - Discovery panel rendering on mobile viewports Boundary notes: - None — isolated to a single CSS class change in the DiscoverPanel component. Pressure points touched: - None ## 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 visually at 390 px (iOS 26, WKWebView): panel no longer overflows, no blank space below when few results shown. ## 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 / bugfix only — no new feature surface. ## Docs and release impact - [x] No docs changes needed ## UI evidence before <img width="420" height="604" alt="discover overflow before" src="https://github.com/user-attachments/assets/50303554-2746-4ee0-8bb3-df7c3dcf5232" /> after <img width="417" height="445" alt="discover after" src="https://github.com/user-attachments/assets/ac849cba-5927-404b-8b27-d23df70e617f" /> --- <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#5422
No description provided.