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: make media delete confirmation responsive
[._.]/ Adam Eivy314fd442babe
diff --git a/client/src/components/ui/InlineConfirmRow.jsx b/client/src/components/ui/InlineConfirmRow.jsxindex 8e2dba1153..20ad1da9e9 100644--- a/client/src/components/ui/InlineConfirmRow.jsx+++ b/client/src/components/ui/InlineConfirmRow.jsx@@ -61,26 +61,28 @@ export default function InlineConfirmRow({<divref={rowRef}tabIndex={autoFocus ? -1 : undefined}- className={`flex items-center gap-2 ${v.frame} ${t.wrapper} focus:outline-hidden focus:ring-2 focus:ring-port-accent ${className}`.trim()}+ className={`flex flex-col items-stretch gap-2 sm:flex-row sm:items-center ${v.frame} ${t.wrapper} focus:outline-hidden focus:ring-2 focus:ring-port-accent ${className}`.trim()}{...rest}>- <span className={`${v.question} text-white flex-1`}>{question}</span>- <button- type="button"- onClick={onConfirm}- title={confirmTitle}- className={`px-2 py-1 text-xs rounded transition-colors ${t.confirm}`}- >- {confirmText}- </button>- <button- type="button"- onClick={onCancel}- title={cancelTitle}- className="px-2 py-1 text-xs text-gray-400 hover:text-white transition-colors"- >- {cancelText}- </button>+ <span className={`${v.question} text-white flex-1 min-w-0`}>{question}</span>+ <div className="grid grid-cols-2 gap-2 sm:flex sm:shrink-0">+ <button+ type="button"+ onClick={onConfirm}+ title={confirmTitle}+ className={`min-w-0 min-h-9 px-2 py-1 text-xs rounded transition-colors ${t.confirm}`}+ >+ {confirmText}+ </button>+ <button+ type="button"+ onClick={onCancel}+ title={cancelTitle}+ className="min-w-0 min-h-9 px-2 py-1 text-xs text-gray-400 hover:text-white transition-colors"+ >+ {cancelText}+ </button>+ </div></div>);}diff --git a/client/src/components/ui/InlineConfirmRow.test.jsx b/client/src/components/ui/InlineConfirmRow.test.jsxindex e4b133f088..455dbaabec 100644--- a/client/src/components/ui/InlineConfirmRow.test.jsx+++ b/client/src/components/ui/InlineConfirmRow.test.jsx@@ -64,6 +64,18 @@ describe('InlineConfirmRow', () => {expect(screen.getByRole('button', { name: 'Cancel' }).getAttribute('type')).toBe('button');});+ it('stacks the question above equal-width actions on narrow screens', () => {+ render(<InlineConfirmRow question="Delete this image?" />);+ const wrapper = screen.getByText('Delete this image?').closest('div');+ const actions = screen.getByRole('button', { name: 'Delete' }).parentElement;++ expect(wrapper.className).toContain('flex-col');+ expect(wrapper.className).toContain('sm:flex-row');+ expect(actions.className).toContain('grid-cols-2');+ expect(screen.getByRole('button', { name: 'Delete' }).className).toContain('min-h-9');+ expect(screen.getByRole('button', { name: 'Cancel' }).className).toContain('min-h-9');+ });+it('forwards passthrough props (data-*/aria-*) to the root like sibling primitives', () => {render(<InlineConfirmRow question="x" data-testid="confirm-row" aria-label="Confirm deletion" />);const wrapper = screen.getByTestId('confirm-row');