Skip to content

fix: keep MIDI input pills from running under Refresh - #53

Merged
patrickiel merged 2 commits into
mainfrom
issue-28-midi-inputs-overlap
Nov 10, 2026
Merged

patrickiel merged 2 commits into
mainfrom
issue-28-midi-inputs-overlap

Conversation

@patrickiel

@patrickiel patrickiel commented Nov 10, 2026 •

Copy link
Copy Markdown
Owner

In Settings → MIDI, a long input name (Linux's always-present "Midi Through Port-0") ran under the Refresh button in a narrow sidebar.

Cause: each device pill was whitespace-nowrap and sat between the INPUTS label and Refresh, in a min-w-0 flex-1 list. The list shrank below the pill's width, and the pill overflowed it.

Fix (MidiSettingsPanel.svelte): the INPUTS label and Refresh now share a header row, and the device pills sit on their own line beneath it, so names get the strip's whole width. A name too long even for that wraps inside its pill (rounded-xl: a full pill on one line, a rounded box on two) instead of being clipped. An earlier version ellipsized the names, but that cut ordinary names short at the default sidebar width.

Verified

  • pnpm format, pnpm check (0 errors) and pnpm test (784 passed) all pass.
  • svelte-autofixer reports no issues.
  • In pnpm dev, with the mock temporarily listing "Midi Through Port-0", "Virtual Foot Controller MIDI 1" and a very long name: at the default sidebar width the first two show in full on one line each, and the long one wraps onto two lines.

Closes #28

The device pills in Settings → MIDI were whitespace-nowrap inside a
min-w-0 list, so in a narrow sidebar the list shrank below a long name
(Linux's "Midi Through Port-0") and the pill spilled out under the
Refresh button. A pill is now capped at the list's width and ellipsizes
its name, with the full name in a tooltip.

Closes #28
Ellipsizing kept the pills off Refresh but cut ordinary names like
"Midi Through Port-0" short in the default sidebar width. The Inputs
label and Refresh now share a header row and the pills sit on their own
line beneath it, so names get the whole strip; one too long even for
that wraps inside its pill rather than being clipped.

Refs #28
@patrickiel
patrickiel merged commit d27784f into main Nov 10, 2026
6 of 7 checks passed
@patrickiel
patrickiel deleted the issue-28-midi-inputs-overlap branch November 10, 2026 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Overlapping control

1 participant