Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

Music video: shot card header buttons get their own row on a phone (#11475)

[._.]/10a919aa1efe
diff --git a/client/src/components/media/VideoStartTrimControl.jsx b/client/src/components/media/VideoStartTrimControl.jsx
index fb2e711347..d7b724a6b0 100644
--- a/client/src/components/media/VideoStartTrimControl.jsx
+++ b/client/src/components/media/VideoStartTrimControl.jsx
@@ -71,7 +71,7 @@ export default function VideoStartTrimControl({ videoRef, fps, onTrim, sourceKey
<ChevronRight className="w-4 h-4" />
</button>
<button type="button" disabled={busy || frame < 1} onClick={trim}
- className="min-h-[44px] flex items-center gap-1.5 px-2 rounded bg-port-border text-white disabled:opacity-50">
+ className="min-h-[44px] flex items-center gap-1.5 px-2 rounded bg-port-border text-sm text-port-text disabled:opacity-50">
<Scissors className="w-3.5 h-3.5" /> {saving ? 'Trimming…' : 'Start clip here'}
</button>
{error && <p role="alert" className="w-full text-xs text-port-error">{error}</p>}
diff --git a/client/src/components/musicVideo/SceneCard.jsx b/client/src/components/musicVideo/SceneCard.jsx
index d62cbceb27..453ad0a674 100644
--- a/client/src/components/musicVideo/SceneCard.jsx
+++ b/client/src/components/musicVideo/SceneCard.jsx
@@ -396,7 +396,7 @@ export default function SceneCard({
>
<summary
onClick={() => onSeek?.(scene)}
- className="flex min-h-[44px] cursor-pointer select-none items-center gap-3 p-2 marker:content-none flex-wrap group-open:pr-52 sm:group-open:pr-72 [&::-webkit-details-marker]:hidden"
+ className="flex min-h-[44px] cursor-pointer select-none items-center gap-3 p-2 marker:content-none flex-wrap sm:group-open:pr-72 [&::-webkit-details-marker]:hidden"
>
<ChevronRight size={14} aria-hidden="true" className="shrink-0 text-port-text-muted transition-transform group-open:rotate-90" />
<ScenePoster scene={scene} iconSize={14} className="aspect-video w-16 shrink-0 rounded border border-port-border sm:w-20 max-sm:group-open:hidden" />
@@ -437,11 +437,12 @@ export default function SceneCard({
</span>
)}
</summary>
- {/* The open card's lock and "…" menu sit in its top-right corner. A move swaps this
- shot with its neighbor; the song timing and lyric stay with the slot. */}
- <div className="absolute right-2 top-2 z-10 flex items-center gap-1">
+ {/* The open card's shot arrows, lock and "…" menu: their own row under the title on a
+ phone, the top-right corner from sm up. A move swaps this shot with its neighbor;
+ the song timing and lyric stay with the slot. */}
+ <div className="flex items-center justify-end gap-1 px-2 pb-2 sm:absolute sm:right-2 sm:top-2 sm:z-10 sm:p-0">
{stepShot && (
- <>
+ <span className="mr-auto flex items-center gap-1 sm:mr-0">
<button type="button" onClick={stepShot.prev || undefined} disabled={!stepShot.prev} aria-label="Previous shot" title="Previous shot"
className="inline-flex min-h-[44px] min-w-[44px] items-center justify-center rounded-lg border border-port-border text-port-text hover:bg-port-border disabled:opacity-40 sm:min-h-[32px] sm:min-w-[32px]">
<ChevronLeft size={16} aria-hidden="true" />
@@ -450,7 +451,7 @@ export default function SceneCard({
className="inline-flex min-h-[44px] min-w-[44px] items-center justify-center rounded-lg border border-port-border text-port-text hover:bg-port-border disabled:opacity-40 sm:min-h-[32px] sm:min-w-[32px]">
<ChevronRight size={16} aria-hidden="true" />
</button>
- </>
+ </span>
)}
<ShotLockButton scene={scene} compact />
<OverflowMenu label="Shot actions" items={[
diff --git a/client/src/components/musicVideo/SceneTakeStrip.jsx b/client/src/components/musicVideo/SceneTakeStrip.jsx
index 4254dd2b25..567e923885 100644
--- a/client/src/components/musicVideo/SceneTakeStrip.jsx
+++ b/client/src/components/musicVideo/SceneTakeStrip.jsx
@@ -46,7 +46,7 @@ export default function SceneTakeStrip({
<div className="text-[11px] text-port-text-muted">
{KIND_LABEL[kind]} ({takes.length})
</div>
- <ul className={grid ? 'grid grid-cols-[repeat(auto-fill,minmax(6rem,1fr))] gap-2' : 'flex gap-2 overflow-x-auto pb-1'} aria-label={`${KIND_LABEL[kind]} for ${scene.label || `scene ${scene.order + 1}`}`}>
+ <ul className={grid ? 'grid grid-cols-[repeat(auto-fill,minmax(9rem,1fr))] gap-2 sm:grid-cols-[repeat(auto-fill,minmax(6rem,1fr))]' : 'flex gap-2 overflow-x-auto pb-1'} aria-label={`${KIND_LABEL[kind]} for ${scene.label || `scene ${scene.order + 1}`}`}>
{takes.map((take) => {
const isSelected = take.assetId === selected;
const rejected = take.status === 'rejected';
@@ -82,10 +82,10 @@ export default function SceneTakeStrip({
)}
</button>
{/* Only what the director acts on: how a take was made stays in the hover title. */}
- {(verdict || isSelected || rejected) && (
+ {/* "In use" is already on the thumbnail. */}
+ {(verdict || rejected) && (
<div className="text-[10px] text-port-text-muted truncate" title={take.originalName || take.prompt || takeProvenance(take)}>
{verdict && <span className={`mr-1 rounded px-1 ${VERDICT_TONE[verdict.tone]}`} title="Plate preflight verdict">{verdict.label}</span>}
- {isSelected ? <span className="font-semibold text-port-accent">In use</span> : null}
{rejected ? 'Not for this shot' : ''}
</div>
)}
diff --git a/client/src/pages/MusicVideo.test.jsx b/client/src/pages/MusicVideo.test.jsx
index e9f291a586..e47a99f2a0 100644
--- a/client/src/pages/MusicVideo.test.jsx
+++ b/client/src/pages/MusicVideo.test.jsx
@@ -2578,7 +2578,7 @@ describe('MusicVideo visual spec, takes and handoff (#8965)', () => {
fireEvent.click(within(strip).getByRole('button', { name: /Use/ }));
await waitFor(() => expect(selectMusicVideoSceneTake).toHaveBeenCalledWith('mv-takes', 's1', 't-b', { silent: true }));
// The server's answer moves the selection; the other take now offers "Use".
- await waitFor(() => expect(within(strip).getAllByText('In use', { selector: 'div > span' })).toHaveLength(1));
+ await waitFor(() => expect(within(strip).getAllByText('In use', { selector: 'button > span' })).toHaveLength(1));
const items = within(strip).getAllByRole('listitem');
expect(within(items[1]).queryByRole('button', { name: /Use/ })).toBeNull();