mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #5206] [MERGED] fix(tracker): keep Inventory Tracker entries as pills at every width #6671
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#6671
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5206
Author: @augusteo
Created: 8/17/2026
Status: ✅ Merged
Merged: 8/17/2026
Merged by: @SpicyMarinara
Base:
staging← Head:fix/5205-inventory-chip-wrap📝 Commits (2)
c24e816fix(tracker): keep Inventory Tracker entries as pills at every width72e64e0Merge branch 'staging' into fix/5205-inventory-chip-wrap📊 Changes
1 file changed (+4 additions, -3 deletions)
View changed files
📝
packages/client/src/features/tracker-panel/components/sections/InventoryTrackerPanel.tsx(+4 -3)📄 Description
Linked issue
Closes #5205
Why this change
The Inventory Tracker stops looking like an inventory as soon as the panel gets narrow. Below a 300px container width it abandoned the chip layout and gave every entry its own full-width row, so the pill shape — the thing that makes an entry read as an item rather than as a button — was gone at exactly the width where it does the most work.
The group container was
flex-colunder the breakpoint. In column direction the chips stretch to the full row, so this was not a wrapping failure; the stacked bars were the intended fallback rendering itself.It is reachable in normal use: the docked sidebar's minimum is 240px (
ui.store.ts:127), well under the breakpoint, so dragging the sidebar in is enough to trigger it.And it costs the most space where there is least of it. Same twelve entries, same 260px panel, measured on the live section element:
ced28787f(#5168) introduced the breakpoint deliberately, reasoning that below ~300px a wrapping row fits barely two chips so the ragged right edge costs more than the wrapping saves. The ragged edge is real, but it is cheap. Losing the chip identity and a third of the vertical budget is not, and it works against the density goal that motivated #5168 in the first place.What changed
InventoryTrackerPanel.tsx: the group container is nowflex flex-wrapat every width; the@min-[300px]variants are gone. Chips keeprounded-full,min-w-0, andmax-w-full, so they size to content and a name too long for one line still clips to the panel instead of overflowing it.Behavior above 300px is unchanged — that path already wrapped. One file, three lines.
Validation
pnpm checkpasses locallyCONTRIBUTING.mdManual verification notes
Only the
pnpm checkbox is ticked, and it is the only one that has actually been verified. It was run on this branch at the head commit and exited 0 (tsc, ESLint, Prettier, client build). Every other box above is left unticked on purpose — treat them as a to-do list, not as evidence. The before/after screenshots were captured from the running dev app against a live chat, at a 260px panel, by toggling only this commit in the working tree, so they are the same data and the same width in both shots; that is automated capture, not the manual click-through the checklist asks for. The before/after screenshots above were captured from the running dev app against a live chat, at a 260px panel, by toggling only this commit in the working tree — so they are the same data and the same width in both shots.Still to verify manually before merging:
document.bodyand owns its own container context.×Nfield, a remove button, and a padlock inside each chip, which is the tightest case.Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)No user-facing docs describe the narrow-width layout, so nothing under
docs/looks affected — worth a second opinion from a maintainer, since the Inventory Tracker docs were added recently (#5113).UI evidence (if applicable)
See the before/after table above. Both shots: 12 entries, 260px panel, dark mode, docked sidebar.
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.