[GH-ISSUE #4434] [Issue]: Storyboard Agent settings overflow horizontally on mobile #2408

Closed
opened 2026-10-21 05:47:57 +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-Engine/issues/4434

Originally assigned to: @thetopham on GitHub.

Summary

The Storyboard Agent settings GUI overflows horizontally on mobile. The panel/page can be scrolled sideways and the layout becomes visually broken, with content or controls extending beyond the viewport instead of fitting the mobile Agent editor.

Expected behavior

  • The Storyboard Agent settings surface should stay within the mobile viewport at common phone widths.
  • Settings should collapse to a readable single-column layout where needed.
  • Template names, connection names, prompt fields, and action buttons should shrink or wrap without widening the page.
  • Only intentional inner editors may scroll; the Agent panel and application shell should not acquire horizontal page scrolling.
  • All controls should remain visible, reachable, and usable without panning sideways.

Actual behavior

On mobile, opening the Storyboard Agent GUI allows horizontal scrolling “to the side,” and the overall settings layout is reported as messed up. Content appears wider than the available panel/viewport.

Steps to reproduce

  1. Use Marinara Engine at a mobile viewport or in the mobile app shell.
  2. Install/enable the Storyboard Agent.
  3. Open Chat Settings → Agents → Storyboard and enter its settings/editor surface.
  4. Scroll through the Storyboard configuration, including planner selectors and prompt-template collections.
  5. Attempt to scroll horizontally or inspect the right edge of the panel.
  6. Observe the panel/page extending beyond the viewport and controls/layout becoming clipped or displaced.
  7. Repeat at 320 px, 360 px, and 390 px widths with:
    • default Storyboard settings;
    • long template and connection names;
    • prompt collection cards;
    • the expanded macro prompt editor.

Environment

  • Marinara Engine version: Not provided
  • Install type: Not provided
  • OS + version: Not provided
  • Browser or app shell: Mobile; exact platform not provided
  • Storyboard package version: Current Agents staging is 1.1.1; tester's installed version is not confirmed

Logs, screenshots, or video

No screenshot or recording was attached. A screenshot showing which row/card crosses the viewport and the device viewport width would help isolate the first overflowing descendant.

Additional context

The Storyboard package currently provides a data-only Agent entrypoint; Engine renders the dedicated UI in packages/client/src/components/agents/StoryboardAgentSettingsPanel.tsx through AgentEditor.tsx. This makes the responsive layout fix Engine-owned even though Storyboard definitions and defaults live in Pasta-Devs/Marinara-Agents.

The responsive audit should check:

  • shrink constraints such as min-w-0 / max-w-full on grid, flex, select, input, and textarea descendants;
  • template-card header rows containing the index, editable name, restore button, and delete button;
  • intrinsic select width from long Storyboard template/connection labels;
  • prompt-editor expansion and nested card padding;
  • the containing Agent editor/drawer for accidental overflow-x: auto or an unconstrained child.

Add a focused mobile browser regression that asserts the Storyboard settings document/panel width does not exceed the viewport and that representative controls remain in view.

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-Engine/issues/4434 Originally assigned to: @thetopham on GitHub. ## Summary The Storyboard Agent settings GUI overflows horizontally on mobile. The panel/page can be scrolled sideways and the layout becomes visually broken, with content or controls extending beyond the viewport instead of fitting the mobile Agent editor. ## Expected behavior - The Storyboard Agent settings surface should stay within the mobile viewport at common phone widths. - Settings should collapse to a readable single-column layout where needed. - Template names, connection names, prompt fields, and action buttons should shrink or wrap without widening the page. - Only intentional inner editors may scroll; the Agent panel and application shell should not acquire horizontal page scrolling. - All controls should remain visible, reachable, and usable without panning sideways. ## Actual behavior On mobile, opening the Storyboard Agent GUI allows horizontal scrolling “to the side,” and the overall settings layout is reported as messed up. Content appears wider than the available panel/viewport. ## Steps to reproduce 1. Use Marinara Engine at a mobile viewport or in the mobile app shell. 2. Install/enable the Storyboard Agent. 3. Open Chat Settings → Agents → Storyboard and enter its settings/editor surface. 4. Scroll through the Storyboard configuration, including planner selectors and prompt-template collections. 5. Attempt to scroll horizontally or inspect the right edge of the panel. 6. Observe the panel/page extending beyond the viewport and controls/layout becoming clipped or displaced. 7. Repeat at 320 px, 360 px, and 390 px widths with: - default Storyboard settings; - long template and connection names; - prompt collection cards; - the expanded macro prompt editor. ## Environment - Marinara Engine version: Not provided - Install type: Not provided - OS + version: Not provided - Browser or app shell: Mobile; exact platform not provided - Storyboard package version: Current Agents staging is 1.1.1; tester's installed version is not confirmed ## Logs, screenshots, or video No screenshot or recording was attached. A screenshot showing which row/card crosses the viewport and the device viewport width would help isolate the first overflowing descendant. ## Additional context The Storyboard package currently provides a data-only Agent entrypoint; Engine renders the dedicated UI in `packages/client/src/components/agents/StoryboardAgentSettingsPanel.tsx` through `AgentEditor.tsx`. This makes the responsive layout fix Engine-owned even though Storyboard definitions and defaults live in Pasta-Devs/Marinara-Agents. The responsive audit should check: - shrink constraints such as `min-w-0` / `max-w-full` on grid, flex, select, input, and textarea descendants; - template-card header rows containing the index, editable name, restore button, and delete button; - intrinsic select width from long Storyboard template/connection labels; - prompt-editor expansion and nested card padding; - the containing Agent editor/drawer for accidental `overflow-x: auto` or an unconstrained child. Add a focused mobile browser regression that asserts the Storyboard settings document/panel width does not exceed the viewport and that representative controls remain in view. ## Template check - [ ] I DID NOT read this template and provide the requested details.
Author
Owner

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

Source audit follow-up (current origin/staging, commit 07a3b40a):

  • The overflow has a concrete min-content path. StoryboardAgentSettingsPanel.tsx uses several responsive CSS grids whose child <label> elements and w-full <select> controls do not have min-w-0 / max-w-full. Long template and connection option labels can therefore size an auto grid track wider than the phone.
  • TemplateCollectionEditor also lacks min-w-0 on its outer panel/card/wrapper chain. Its name row is partly protected by the input's min-w-0, but the nested MacroTextarea wrapper is only relative and the overall editor panel can still contribute a wide min-content size.
  • The shared Agent editor makes the failure propagate: .mari-editor-content is a flex child with min-height: 0 but no min-width: 0, and .mari-editor-content-inner--wide has a max width but no explicit width: 100% / min-width: 0. There is no intentional horizontal containment on the content scroller.
  • Mobile touch sizing also needs to be part of the same pass. The template restore/delete buttons are h-8 w-8, and MacroTextarea toolbar buttons are roughly icon-plus-p-1, below the 44 px product target and potentially below WCAG 2.2's 24 px minimum depending on computed size.

Suggested regression assertion after the fix:

  1. Open Storyboard Agent settings with deliberately long planner, connection, and template names.
  2. Test 320, 360, and 390 px widths plus increased text size.
  3. Assert scrollWidth <= clientWidth + 1 for the Agent editor shell/content and the document viewport.
  4. Assert representative selects, template name fields, restore/delete controls, and Macro editor actions remain inside the viewport and meet the intended touch-target size.

This remains Engine-owned UI. No package artifact change is needed unless the Storyboard defaults or metadata also change.

<!-- gh-comment-id:5153099931 --> @thetopham commented on GitHub (Aug 1, 2026): Source audit follow-up (current `origin/staging`, commit `07a3b40a`): - The overflow has a concrete min-content path. `StoryboardAgentSettingsPanel.tsx` uses several responsive CSS grids whose child `<label>` elements and `w-full` `<select>` controls do not have `min-w-0` / `max-w-full`. Long template and connection option labels can therefore size an `auto` grid track wider than the phone. - `TemplateCollectionEditor` also lacks `min-w-0` on its outer panel/card/wrapper chain. Its name row is partly protected by the input's `min-w-0`, but the nested `MacroTextarea` wrapper is only `relative` and the overall editor panel can still contribute a wide min-content size. - The shared Agent editor makes the failure propagate: `.mari-editor-content` is a flex child with `min-height: 0` but no `min-width: 0`, and `.mari-editor-content-inner--wide` has a max width but no explicit `width: 100%` / `min-width: 0`. There is no intentional horizontal containment on the content scroller. - Mobile touch sizing also needs to be part of the same pass. The template restore/delete buttons are `h-8 w-8`, and `MacroTextarea` toolbar buttons are roughly icon-plus-`p-1`, below the 44 px product target and potentially below WCAG 2.2's 24 px minimum depending on computed size. Suggested regression assertion after the fix: 1. Open Storyboard Agent settings with deliberately long planner, connection, and template names. 2. Test 320, 360, and 390 px widths plus increased text size. 3. Assert `scrollWidth <= clientWidth + 1` for the Agent editor shell/content and the document viewport. 4. Assert representative selects, template name fields, restore/delete controls, and Macro editor actions remain inside the viewport and meet the intended touch-target size. This remains Engine-owned UI. No package artifact change is needed unless the Storyboard defaults or metadata also change.
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#2408
No description provided.