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): preserve compact lane selection space (#5426)
[._.]/ Adam Eivy0d4da91de853
diff --git a/client/src/components/media/VideoTimelineLanes.jsx b/client/src/components/media/VideoTimelineLanes.jsxindex 06d4178ce1..3c229a36fc 100644--- a/client/src/components/media/VideoTimelineLanes.jsx+++ b/client/src/components/media/VideoTimelineLanes.jsx@@ -112,12 +112,12 @@ export const LaneBlock = memo(function LaneBlock({const dur = Math.max(0.05, entry.durationSec || 0);const style = {left: `${(entry.startSec || 0) * pxPerSec}px`,- width: `${Math.max(28, dur * pxPerSec)}px`,+ width: `${Math.max(56, dur * pxPerSec)}px`,};return (<divstyle={style}- className={`absolute top-1 bottom-1 rounded border cursor-pointer overflow-hidden ${+ className={`absolute top-1 bottom-1 rounded border cursor-pointer ${isMissing? 'bg-port-error/20 border-port-error': isSelected@@ -127,14 +127,14 @@ export const LaneBlock = memo(function LaneBlock({onClick={() => onSelect(entry._key)}{...clickableProps(() => onSelect(entry._key))}>- <span className="absolute inset-x-1 top-0.5 text-[9px] text-white truncate pointer-events-none">+ <span className="absolute left-1 right-7 top-0.5 text-[9px] text-white truncate pointer-events-none">{isMissing ? '(missing)' : label}</span><buttontype="button"onClick={(e) => { e.stopPropagation(); onRemove(entry._key); }}onPointerDown={(e) => e.stopPropagation()}- className="absolute bottom-0 right-0 inline-flex min-w-[28px] min-h-[28px] items-center justify-center p-1 text-white/70 hover:text-port-error"+ className="absolute top-1/2 right-0 -translate-y-1/2 inline-flex min-w-[28px] min-h-[28px] items-center justify-center p-1 text-white/70 hover:text-port-error"title="Remove"aria-label={`Remove ${label} from timeline`}>diff --git a/client/src/components/media/VideoTimelineLanes.test.jsx b/client/src/components/media/VideoTimelineLanes.test.jsxindex 307b299200..ca10c8e232 100644--- a/client/src/components/media/VideoTimelineLanes.test.jsx+++ b/client/src/components/media/VideoTimelineLanes.test.jsx@@ -161,16 +161,20 @@ describe('LaneBlock — free-floating overlay/bed placement', () => {expect(screen.queryByText('gone.png')).not.toBeInTheDocument();});- it('provides a 28px hit target and removes without selecting the block', () => {+ it('reserves separate 28px hit targets for selection and removal', () => {const onSelect = vi.fn();const onRemove = vi.fn();render(- <LaneBlock entry={entry} label="logo.png" tone="" isSelected={false} isMissing={false} pxPerSec={40} onSelect={onSelect} onRemove={onRemove} />,+ <LaneBlock entry={{ ...entry, durationSec: 0 }} label="logo.png" tone="" isSelected={false} isMissing={false} pxPerSec={40} onSelect={onSelect} onRemove={onRemove} />,);const remove = screen.getByRole('button', { name: 'Remove logo.png from timeline' });+ const block = remove.parentElement;+ expect(block).toHaveStyle({ width: '56px' });+ expect(block.className).not.toContain('overflow-hidden');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);