The first public release of Fabled Minstrel #158

Merged
bvandeusen merged 256 commits from dev into main 2026-12-03 21:41:58 -05:00
3 changed files with 16 additions and 4 deletions
Showing only changes of commit 813c289bc0 - Show all commits
+7 -2
View File
@@ -11,12 +11,16 @@
track,
onClose,
initialReason,
initialNotes
initialNotes,
direction = 'down'
}: {
track: TrackRef;
onClose: () => void;
initialReason?: QuarantineReason;
initialNotes?: string;
/** Whether the box opens above its trigger ('up') or below ('down'), as
the menu that opened it does: 'up' near the bottom of the screen. */
direction?: 'up' | 'down';
} = $props();
let reason: QuarantineReason = $state(untrack(() => initialReason ?? 'bad_rip'));
@@ -48,7 +52,8 @@
tabindex="-1"
aria-modal="false"
aria-labelledby="flag-popover-title"
class="absolute right-0 z-30 mt-1 w-72 rounded-lg border border-border bg-surface p-3 shadow-xl"
class="absolute right-0 z-30 w-72 rounded-lg border border-border bg-surface p-3 shadow-xl
{direction === 'up' ? 'bottom-full mb-1' : 'top-full mt-1'}"
onclick={(e) => e.stopPropagation()}
onkeydown={(e) => { e.stopPropagation(); if (e.key === 'Escape') onClose(); }}
>
+8 -1
View File
@@ -2,11 +2,18 @@
// 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="overflow-hidden rounded-md border border-border">
<div
class="rounded-md border border-border [&>:first-child]:rounded-t-md [&>:last-child]:rounded-b-md"
>
{@render children()}
</div>
+1 -1
View File
@@ -191,7 +191,7 @@
{/if}
{#if flagOpen}
<FlagPopover {track} onClose={closeAll} />
<FlagPopover {track} {direction} onClose={closeAll} />
{/if}
{#if addOpen}