Files
minstrel/web/src/lib/components/TrackList.svelte
T
bvandeusenandClaude Opus 5.5 813c289bc0
release / web (push) Successful in 1m24s
release / go (push) Successful in 1m48s
release / govulncheck (push) Successful in 19s
release / integration (push) Successful in 3m55s
release / Attach APK to the Release (tag releases only) (push) Canceled after 0s
release / Build + push container image (push) Canceled after 0s
release / Verify release artifacts (tag releases only) (push) Canceled after 0s
release / Build signed APK (push) Canceled after 2m2s
release / android (push) Canceled after 2m53s
fix(web): track menus open past a short list, and the player's flag box opens up
TrackList no longer clips its rows, so a row's menu shows under a one-row
search result; the first and last rows round their own corners instead.
The flag box takes its menu's direction, so on the player bar it opens
above the bar instead of off the screen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 13:01:40 -05:00

20 lines
706 B
Svelte

<script lang="ts">
// The box every track list sits in. No fill of its own:
// the rows stripe themselves, and a filled box would hide the stripe.
// Rows are direct children so `odd:` counts them.
//
// The box does not clip its rows: a row's menu opens past the box's edge,
// and in a short list (one search result) clipping would hide it. The first
// and last rows round their own corners instead, so their fill stays inside
// the border.
import type { Snippet } from 'svelte';
let { children }: { children: Snippet } = $props();
</script>
<div
class="rounded-md border border-border [&>:first-child]:rounded-t-md [&>:last-child]:rounded-b-md"
>
{@render children()}
</div>