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
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix(media): keep compact lane taps non-destructive (#5426)
[._.]/ Adam Eivy53b8ea91c9c5
diff --git a/client/src/components/media/VideoTimelineLanes.jsx b/client/src/components/media/VideoTimelineLanes.jsxindex bf9ef4f9b6..a25cebafcf 100644--- a/client/src/components/media/VideoTimelineLanes.jsx+++ b/client/src/components/media/VideoTimelineLanes.jsx@@ -111,7 +111,7 @@ export const LaneBlock = memo(function LaneBlock({}) {const dur = Math.max(0.05, entry.durationSec || 0);const width = Math.max(28, dur * pxPerSec);- const showRemove = isSelected || width >= 56;+ const showRemove = width >= 56;const style = {left: `${(entry.startSec || 0) * pxPerSec}px`,width: `${width}px`,diff --git a/client/src/components/media/VideoTimelineLanes.test.jsx b/client/src/components/media/VideoTimelineLanes.test.jsxindex e647d0a335..7c14e3ae08 100644--- a/client/src/components/media/VideoTimelineLanes.test.jsx+++ b/client/src/components/media/VideoTimelineLanes.test.jsx@@ -171,7 +171,6 @@ describe('LaneBlock — free-floating overlay/bed placement', () => {const remove = screen.getByRole('button', { name: 'Remove logo.png from timeline' });expect(remove.className).toContain('min-w-[28px]');expect(remove.className).toContain('min-h-[28px]');- expect(remove.className).toContain('-translate-y-1/2');fireEvent.pointerDown(remove);fireEvent.click(remove);@@ -181,7 +180,7 @@ describe('LaneBlock — free-floating overlay/bed placement', () => {expect(onRemove).toHaveBeenCalledWith('ov-1');});- it('keeps compact entries at their temporal width and reveals removal after selection', () => {+ it('keeps compact entries selectable without turning the block into a delete target', () => {const compactEntry = { ...entry, durationSec: 0 };const onSelect = vi.fn();const onRemove = vi.fn();@@ -199,19 +198,13 @@ describe('LaneBlock — free-floating overlay/bed placement', () => {rerender(<LaneBlock entry={compactEntry} label="logo.png" tone="" isSelected isMissing={false} pxPerSec={40} onSelect={onSelect} onRemove={onRemove} />,);- expect(block.className).toContain('z-10');-- const remove = screen.getByRole('button', { name: 'Remove logo.png from timeline' });- expect(remove.className).toContain('min-w-[28px]');- expect(remove.className).toContain('min-h-[28px]');+ expect(screen.queryByRole('button', { name: 'Remove logo.png from timeline' })).not.toBeInTheDocument();onSelect.mockClear();- fireEvent.pointerDown(remove);- fireEvent.click(remove);+ fireEvent.click(block);- expect(onSelect).not.toHaveBeenCalled();- expect(onRemove).toHaveBeenCalledOnce();- expect(onRemove).toHaveBeenCalledWith('ov-1');+ expect(onSelect).toHaveBeenCalledWith('ov-1');+ expect(onRemove).not.toHaveBeenCalled();});});