[GH-ISSUE #179] [Issue]: World library header actions overflow on mobile #92

Closed
opened 2026-10-20 17:24:17 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @thetopham on GitHub (Aug 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/179

Originally assigned to: @thetopham on GitHub.

Summary

The World Maps World library header cannot fit its action controls on a phone. It renders five labeled actions in one non-wrapping flex row, so the row is substantially wider than a 320-390 px viewport and controls are clipped or cause horizontal overflow.

PR #164 explicitly listed desktop/mobile discoverability for World library, Detach and keep copy, and Replace / start over as manual verification, but that check remained unchecked. The same header layout is still present in current World Maps 1.2.6 staging source.

Affected package

World Maps (hierarchical-maps) 1.2.5 and current 1.2.6 staging source.

Expected behavior

  • The World library header stays within the mobile viewport at 320, 360, and 390 px widths.
  • Every action remains reachable without horizontal page panning: Guide, Import shared, New shared world, Import template, and New map template.
  • The layout uses an intentional mobile treatment such as wrapping, a compact overflow menu, or a separate mobile action area.
  • Touch targets remain at least 44 px high.

Actual behavior

SpatialMapLibrary.tsx places all five labeled controls inside mari-editor-actions. At the mobile breakpoint the row becomes w-full, but it never gains flex-wrap, horizontal scrolling, or an overflow menu. The shared .mari-editor-actions rule is display: flex; flex: 0 0 auto with no wrapping.

The combined intrinsic width of the five labels, icons, padding, and gaps is far larger than a phone viewport. Depending on the containing shell, the right-side controls are clipped or the editor can be panned horizontally.

Steps to reproduce

  1. Install/enable World Maps 1.2.5 or current staging.
  2. Open a Roleplay or Game chat at a 320, 360, or 390 px viewport.
  3. Open Agents -> World Maps -> Open world library.
  4. Inspect the header actions: Guide, Import shared, New shared world, Import template, and New map template.
  5. Observe that the one-line action row exceeds the viewport and some actions are clipped or require horizontal panning.
  6. Repeat with increased browser text size to confirm the layout does not rely on short English labels.

Environment

  • Marinara Engine version: Package declares support from 2.3.5 through below 3.0.0
  • Package version: World Maps 1.2.5; confirmed unchanged in current 1.2.6 staging source
  • Install type: Source review / package client UI
  • OS + version: Mobile viewport; exact platform not required for the deterministic width failure
  • Browser or app shell: Chromium/WebView-compatible mobile layout

Logs, screenshots, or video

Source evidence:

  • SpatialMapLibrary.tsx lines 591-656 renders five labeled actions in one mari-editor-actions container.
  • The mobile class adds max-sm:w-full but no wrapping or overflow behavior.
  • Engine globals.css defines .mari-editor-actions as a single flex row with no flex-wrap.

A focused browser regression should assert that the World library root and header have no horizontal overflow at 320, 360, and 390 px, and that every action button is visible and reachable.

Additional context

  • Related merged work: #164.
  • This is package-owned UI generated into World Maps client.js; rebuild package outputs, manifest hashes, ZIP, and all catalog lanes together when fixed.
  • Keep the mobile action hierarchy simple. The two primary creation actions should remain obvious, while imports and help can move into a compact secondary menu if needed.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @thetopham on GitHub (Aug 1, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/179 Originally assigned to: @thetopham on GitHub. ## Summary The World Maps **World library** header cannot fit its action controls on a phone. It renders five labeled actions in one non-wrapping flex row, so the row is substantially wider than a 320-390 px viewport and controls are clipped or cause horizontal overflow. PR #164 explicitly listed desktop/mobile discoverability for **World library**, **Detach and keep copy**, and **Replace / start over** as manual verification, but that check remained unchecked. The same header layout is still present in current World Maps 1.2.6 staging source. ## Affected package World Maps (`hierarchical-maps`) 1.2.5 and current 1.2.6 staging source. ## Expected behavior - The World library header stays within the mobile viewport at 320, 360, and 390 px widths. - Every action remains reachable without horizontal page panning: Guide, Import shared, New shared world, Import template, and New map template. - The layout uses an intentional mobile treatment such as wrapping, a compact overflow menu, or a separate mobile action area. - Touch targets remain at least 44 px high. ## Actual behavior `SpatialMapLibrary.tsx` places all five labeled controls inside `mari-editor-actions`. At the mobile breakpoint the row becomes `w-full`, but it never gains `flex-wrap`, horizontal scrolling, or an overflow menu. The shared `.mari-editor-actions` rule is `display: flex; flex: 0 0 auto` with no wrapping. The combined intrinsic width of the five labels, icons, padding, and gaps is far larger than a phone viewport. Depending on the containing shell, the right-side controls are clipped or the editor can be panned horizontally. ## Steps to reproduce 1. Install/enable World Maps 1.2.5 or current staging. 2. Open a Roleplay or Game chat at a 320, 360, or 390 px viewport. 3. Open Agents -> World Maps -> **Open world library**. 4. Inspect the header actions: **Guide**, **Import shared**, **New shared world**, **Import template**, and **New map template**. 5. Observe that the one-line action row exceeds the viewport and some actions are clipped or require horizontal panning. 6. Repeat with increased browser text size to confirm the layout does not rely on short English labels. ## Environment - Marinara Engine version: Package declares support from 2.3.5 through below 3.0.0 - Package version: World Maps 1.2.5; confirmed unchanged in current 1.2.6 staging source - Install type: Source review / package client UI - OS + version: Mobile viewport; exact platform not required for the deterministic width failure - Browser or app shell: Chromium/WebView-compatible mobile layout ## Logs, screenshots, or video Source evidence: - `SpatialMapLibrary.tsx` lines 591-656 renders five labeled actions in one `mari-editor-actions` container. - The mobile class adds `max-sm:w-full` but no wrapping or overflow behavior. - Engine `globals.css` defines `.mari-editor-actions` as a single flex row with no `flex-wrap`. A focused browser regression should assert that the World library root and header have no horizontal overflow at 320, 360, and 390 px, and that every action button is visible and reachable. ## Additional context - Related merged work: #164. - This is package-owned UI generated into World Maps `client.js`; rebuild package outputs, manifest hashes, ZIP, and all catalog lanes together when fixed. - Keep the mobile action hierarchy simple. The two primary creation actions should remain obvious, while imports and help can move into a compact secondary menu if needed. ## Template check - [ ] I DID NOT read this template and provide the requested details.
Author
Owner

@thetopham commented on GitHub (Aug 2, 2026):

looks fine on my device

<!-- gh-comment-id:5154791339 --> @thetopham commented on GitHub (Aug 2, 2026): looks fine on my device
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-Agents#92
No description provided.