[GH-ISSUE #5205] [Issue]: Inventory Tracker drops its chip layout below 300px and stacks one item per row #2877

Closed
opened 2026-10-21 05:57:28 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @augusteo on GitHub (Aug 17, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5205

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Below a 300px panel width the Inventory Tracker abandons its chip layout and stacks one full-width row per item. The pill shape is what makes an inventory entry read as an item rather than a button, and it is exactly the width where vertical space is scarcest.

Expected behavior

Entries stay as content-sized wrapping pills at every panel width, including the 240px minimum the sidebar allows.

Actual behavior

At any container width under 300px the group switches to a single column and each chip stretches to the full row. Twelve items take 505px of vertical space instead of 327px, and the section reads as a list of buttons.

Steps to reproduce

  1. Open a chat with the Inventory Tracker agent active and holding entries.
  2. Open the docked tracker sidebar.
  3. Drag the sidebar narrower than ~300px (the minimum is 240px).
  4. Scroll to the Inventory Tracker section — every entry is now its own full-width row.

Environment

  • Marinara Engine version: 2.4.3 (staging, at 3251f2388)
  • Install type: source
  • OS + version: macOS 15 (Darwin 25.6.0)
  • Browser or app shell: Chrome

Additional context

Introduced deliberately in ced28787f (#5168, closes #5172). That change's reasoning was that below ~300px a wrapping row fits barely two chips, so the ragged right edge costs more than the wrapping saves. In practice the stacked fallback loses the pill affordance entirely and costs ~35% more vertical space, which is the opposite of what the density work in #5168 set out to do.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @augusteo on GitHub (Aug 17, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5205 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Below a 300px panel width the Inventory Tracker abandons its chip layout and stacks one full-width row per item. The pill shape is what makes an inventory entry read as an item rather than a button, and it is exactly the width where vertical space is scarcest. ## Expected behavior Entries stay as content-sized wrapping pills at every panel width, including the 240px minimum the sidebar allows. ## Actual behavior At any container width under 300px the group switches to a single column and each chip stretches to the full row. Twelve items take 505px of vertical space instead of 327px, and the section reads as a list of buttons. ## Steps to reproduce 1. Open a chat with the Inventory Tracker agent active and holding entries. 2. Open the docked tracker sidebar. 3. Drag the sidebar narrower than ~300px (the minimum is 240px). 4. Scroll to the Inventory Tracker section — every entry is now its own full-width row. ## Environment - Marinara Engine version: 2.4.3 (`staging`, at 3251f2388) - Install type: source - OS + version: macOS 15 (Darwin 25.6.0) - Browser or app shell: Chrome ## Additional context Introduced deliberately in ced28787f (#5168, closes #5172). That change's reasoning was that below ~300px a wrapping row fits barely two chips, so the ragged right edge costs more than the wrapping saves. In practice the stacked fallback loses the pill affordance entirely and costs ~35% more vertical space, which is the opposite of what the density work in #5168 set out to do. ## Template check - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:57:28 +07:00
Author
Owner

@augusteo commented on GitHub (Aug 17, 2026):

Taking this — implementation is up in #5206 (branch fix/5205-inventory-chip-wrap). Owner: @augusteo.

<!-- gh-comment-id:5318801236 --> @augusteo commented on GitHub (Aug 17, 2026): Taking this — implementation is up in #5206 (branch `fix/5205-inventory-chip-wrap`). Owner: @augusteo.
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#2877
No description provided.