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: give shared media actions usable touch targets (#10691)
Adam Eivydd5c0b41bddc
diff --git a/client/src/components/media/AddToCollectionMenu.jsx b/client/src/components/media/AddToCollectionMenu.jsxindex 035d3f3f78..442ac79bfe 100644--- a/client/src/components/media/AddToCollectionMenu.jsx+++ b/client/src/components/media/AddToCollectionMenu.jsx@@ -16,8 +16,8 @@ import { addMediaCollectionItem, removeMediaCollectionItem } from '../../service// Only the trigger button varies by size — popover styling is fixed.const SIZES = {- sm: { button: 'px-1.5 py-1 text-[10px]', icon: 'w-3 h-3' },- md: { button: 'px-2 py-1.5 text-xs', icon: 'w-3.5 h-3.5' },+ sm: { button: 'min-h-[44px] min-w-[44px] px-1.5 py-1 text-[10px]', icon: 'w-3 h-3' },+ md: { button: 'min-h-[44px] min-w-[44px] px-2 py-1.5 text-xs', icon: 'w-3.5 h-3.5' },};export default function AddToCollectionMenu({ item, size = 'sm' }) {@@ -58,7 +58,7 @@ export default function AddToCollectionMenu({ item, size = 'sm' }) {type="button"disabled={busyId === c.id}onClick={() => handleToggleMembership(c, updateCollections)}- className="w-full flex items-center justify-between gap-2 px-2 py-1.5 text-left text-[12px] text-gray-200 hover:bg-port-border rounded disabled:opacity-50"+ className="w-full min-h-[44px] flex items-center justify-between gap-2 px-2 py-1.5 text-left text-[12px] text-gray-200 hover:bg-port-border rounded disabled:opacity-50"aria-pressed={inIt}><CollectionRowLabel name={c.name} />diff --git a/client/src/components/media/MediaCard.jsx b/client/src/components/media/MediaCard.jsxindex 064abe301b..e32cbf79d8 100644--- a/client/src/components/media/MediaCard.jsx+++ b/client/src/components/media/MediaCard.jsx@@ -81,7 +81,7 @@ function MediaCard({<buttontype="button"onClick={() => onToggleStar(item)}- className={`pointer-events-auto p-1 rounded-full ${starred ? 'bg-port-warning/90 text-black' : 'bg-black/50 text-white/70 hover:text-white'}`}+ className={`pointer-events-auto min-h-[44px] min-w-[44px] flex items-center justify-center p-1 rounded-full ${starred ? 'bg-port-warning/90 text-black' : 'bg-black/50 text-white/70 hover:text-white'}`}title={starred ? 'Unfavorite' : 'Favorite'}aria-label={starred ? 'Unfavorite' : 'Favorite'}>@@ -161,7 +161,7 @@ function MediaCard({<buttontype="button"onClick={() => onRemix(item)}- className="flex-1 min-w-0 px-1.5 py-1 bg-port-accent/20 hover:bg-port-accent/40 text-port-accent text-[10px] rounded flex items-center justify-center gap-1"+ className="flex-1 min-w-[80px] min-h-[44px] px-1.5 py-1 bg-port-accent/20 hover:bg-port-accent/40 text-port-accent text-[10px] rounded flex items-center justify-center gap-1"title="Reuse prompt and settings"><Sparkles className="w-3 h-3 shrink-0" /> <span className="truncate">Remix</span>@@ -171,7 +171,7 @@ function MediaCard({<buttontype="button"onClick={() => onSendToImage(item)}- className="shrink-0 px-1.5 py-1 bg-port-accent/20 hover:bg-port-accent/40 text-port-accent text-[10px] rounded flex items-center justify-center"+ className="shrink-0 min-h-[44px] min-w-[44px] px-1.5 py-1 bg-port-accent/20 hover:bg-port-accent/40 text-port-accent text-[10px] rounded flex items-center justify-center"title="Send to image-to-image"aria-label="Send to image-to-image">@@ -182,7 +182,7 @@ function MediaCard({<buttontype="button"onClick={() => onAnnotate(item)}- className="shrink-0 px-1.5 py-1 bg-port-accent/20 hover:bg-port-accent/40 text-port-accent text-[10px] rounded flex items-center justify-center"+ className="shrink-0 min-h-[44px] min-w-[44px] px-1.5 py-1 bg-port-accent/20 hover:bg-port-accent/40 text-port-accent text-[10px] rounded flex items-center justify-center"title="Annotate (draw over this image)"aria-label="Annotate image">@@ -193,7 +193,7 @@ function MediaCard({<buttontype="button"onClick={() => onSendToVideo(item)}- className="shrink-0 px-1.5 py-1 bg-port-success/20 hover:bg-port-success/40 text-port-success text-[10px] rounded flex items-center justify-center"+ className="shrink-0 min-h-[44px] min-w-[44px] px-1.5 py-1 bg-port-success/20 hover:bg-port-success/40 text-port-success text-[10px] rounded flex items-center justify-center"title="Send to Video" aria-label="Send to Video"><Film className="w-3 h-3" />@@ -203,7 +203,7 @@ function MediaCard({<buttontype="button"onClick={() => onSendTo3d(item)}- className="shrink-0 px-1.5 py-1 bg-purple-600/20 hover:bg-purple-600/40 text-purple-300 text-[10px] rounded flex items-center justify-center"+ className="shrink-0 min-h-[44px] min-w-[44px] px-1.5 py-1 bg-purple-600/20 hover:bg-purple-600/40 text-purple-300 text-[10px] rounded flex items-center justify-center"title="Send this image to the 3D page to generate a mesh"aria-label="Send to 3D">@@ -214,7 +214,7 @@ function MediaCard({<buttontype="button"onClick={() => onContinue(item)}- className="flex-1 min-w-0 px-1.5 py-1 bg-port-accent/20 hover:bg-port-accent/40 text-port-accent text-[10px] rounded flex items-center justify-center gap-1"+ className="flex-1 min-w-[80px] min-h-[44px] px-1.5 py-1 bg-port-accent/20 hover:bg-port-accent/40 text-port-accent text-[10px] rounded flex items-center justify-center gap-1"title="Use last frame as Image Gen source"><ImageIcon className="w-3 h-3 shrink-0" /> <span className="truncate">Continue</span>@@ -224,7 +224,7 @@ function MediaCard({<buttontype="button"onClick={() => onFinish(item)}- className="shrink-0 px-1.5 py-1 bg-port-success/20 hover:bg-port-success/40 text-port-success text-[10px] rounded flex items-center justify-center gap-1"+ className="shrink-0 min-h-[44px] min-w-[44px] px-1.5 py-1 bg-port-success/20 hover:bg-port-success/40 text-port-success text-[10px] rounded flex items-center justify-center gap-1"title={finishTitle}><Sparkles className="w-3 h-3 shrink-0" /> <span className="truncate">Finish</span>@@ -234,7 +234,7 @@ function MediaCard({<buttontype="button"onClick={() => onUpscale(item)}- className="shrink-0 px-1.5 py-1 bg-port-border hover:bg-port-border/70 text-white text-[10px] rounded flex items-center justify-center"+ className="shrink-0 min-h-[44px] min-w-[44px] px-1.5 py-1 bg-port-border hover:bg-port-border/70 text-white text-[10px] rounded flex items-center justify-center"title="Upscale 2×" aria-label="Upscale 2×"><Maximize2 className="w-3 h-3" />@@ -245,7 +245,7 @@ function MediaCard({<ahref={assetDownloadUrl(downloadUrl)}download- className="shrink-0 px-1.5 py-1 bg-port-border hover:bg-port-border/70 text-white text-[10px] rounded flex items-center justify-center"+ className="shrink-0 min-h-[44px] min-w-[44px] px-1.5 py-1 bg-port-border hover:bg-port-border/70 text-white text-[10px] rounded flex items-center justify-center"title="Download"aria-label="Download">@@ -255,7 +255,7 @@ function MediaCard({<buttontype="button"onClick={() => onToggleHidden(item)}- className="shrink-0 px-1.5 py-1 bg-port-border hover:bg-port-border/70 text-white text-[10px] rounded flex items-center justify-center"+ className="shrink-0 min-h-[44px] min-w-[44px] px-1.5 py-1 bg-port-border hover:bg-port-border/70 text-white text-[10px] rounded flex items-center justify-center"aria-label={item.hidden ? 'Unhide (move out of hidden section)' : 'Hide (move to hidden section)'}title={item.hidden ? 'Unhide (move out of hidden section)' : 'Hide (move to hidden section)'}>@@ -266,7 +266,7 @@ function MediaCard({<buttontype="button"onClick={() => setConfirmingDelete(true)}- className="shrink-0 px-1.5 py-1 bg-port-error/20 hover:bg-port-error/40 text-port-error text-[10px] rounded flex items-center justify-center"+ className="shrink-0 min-h-[44px] min-w-[44px] px-1.5 py-1 bg-port-error/20 hover:bg-port-error/40 text-port-error text-[10px] rounded flex items-center justify-center"aria-label="Delete"title="Delete">diff --git a/client/src/components/media/MediaLightbox.browser.test.js b/client/src/components/media/MediaLightbox.browser.test.jsindex 4c63565e87..dd83497aa7 100644--- a/client/src/components/media/MediaLightbox.browser.test.js+++ b/client/src/components/media/MediaLightbox.browser.test.js@@ -59,6 +59,7 @@ describe.skipIf(!chrome)('MediaLightbox native video keyboard controls', () => {import React, { useState } from 'react';import { createRoot } from 'react-dom/client';import MediaLightbox from '/src/components/media/MediaLightbox.jsx';+ import MediaCard from '/src/components/media/MediaCard.jsx';import '/src/index.css';import { getTheme } from '/src/themes/portosThemes.js';const theme = getTheme(new URLSearchParams(location.search).get('theme') || 'classic-midnight');@@ -93,11 +94,12 @@ describe.skipIf(!chrome)('MediaLightbox native video keyboard controls', () => {const [item, setItem] = useState(null);const [index, setIndex] = useState(0);const video = { id: 'synthetic', key: 'video:synthetic', kind: 'video', filename: 'synthetic.webm', downloadUrl: clip, previewUrl: image, prompt: 'Synthetic video' };- const images = [0, 1].map(i => ({ key: 'image:synthetic-' + i, kind: 'image', filename: 'synthetic-' + i + '.png', previewUrl: image, prompt: 'Synthetic image ' + i, width: 1600, height: 900, model: 'Synthetic model', seed: 123 }));+ const images = [0, 1].map(i => ({ key: 'image:synthetic-' + i, kind: 'image', downloadUrl: image, filename: 'synthetic-' + i + '.png', previewUrl: image, prompt: 'Synthetic image ' + i, width: 1600, height: 900, model: 'Synthetic model', seed: 123 }));const noop = async () => {};const showImage = i => { setIndex(i); setItem(images[i]); };return React.createElement(React.Fragment, null,React.createElement('button', { id: 'opener', onClick: () => setItem(video) }, 'Open video'),+ React.createElement('div', { id: 'cards', className: 'grid grid-cols-2 md:grid-cols-4 gap-4 p-4' }, images.map(image => React.createElement(MediaCard, { key: image.key, item: image, onRemix: noop, onSendToImage: noop, onSendToVideo: noop, onSendTo3d: noop, onAnnotate: noop, onToggleStar: noop, onDelete: noop }))),React.createElement('button', { id: 'gallery', onClick: () => showImage(0) }, 'Open image gallery'),React.createElement(MediaLightbox, { item, onClose: () => setItem(null),hasPrevious: item?.kind === 'image' && index > 0,@@ -116,7 +118,7 @@ describe.skipIf(!chrome)('MediaLightbox native video keyboard controls', () => {vite.middlewares.use('/lightbox-test', async (_req, res) => {res.setHeader('Content-Type', 'text/html');res.end(await vite.transformIndexHtml('/lightbox-test',- '<div id="root"></div><script type="module" src="/lightbox-fixture.jsx"></script>'));+ '<meta name="viewport" content="width=device-width, initial-scale=1"><div id="root"></div><script type="module" src="/lightbox-fixture.jsx"></script>'));});},}],@@ -200,11 +202,11 @@ describe.skipIf(!chrome)('MediaLightbox native video keyboard controls', () => {await page.route('**/api/**', route => route.fulfill({ json: { providers: [], items: [] } }));await page.goto(`${origin}lightbox-test`);await page.locator('#gallery').click();- await page.getByRole('img', { name: 'Synthetic image 0', exact: true }).waitFor();+ await page.getByRole('dialog').getByRole('img', { name: 'Synthetic image 0', exact: true }).waitFor();await page.getByRole('button', { name: 'Next media' }).click();- await page.getByRole('img', { name: 'Synthetic image 1', exact: true }).waitFor();+ await page.getByRole('dialog').getByRole('img', { name: 'Synthetic image 1', exact: true }).waitFor();await page.getByRole('button', { name: 'Previous media' }).click();- await page.getByRole('img', { name: 'Synthetic image 0', exact: true }).waitFor();+ await page.getByRole('dialog').getByRole('img', { name: 'Synthetic image 0', exact: true }).waitFor();const close = page.locator('button[title="Close (Esc)"]');await close.focus();await page.keyboard.press('Tab');@@ -255,11 +257,11 @@ describe.skipIf(!chrome)('MediaLightbox native video keyboard controls', () => {const next = page.getByRole('button', { name: 'Next media' });await assertInsideMedia(next);await clickAtCenter(next);- await page.getByRole('img', { name: 'Synthetic image 1', exact: true }).waitFor();+ await page.getByRole('dialog').getByRole('img', { name: 'Synthetic image 1', exact: true }).waitFor();const previous = page.getByRole('button', { name: 'Previous media' });await assertInsideMedia(previous);await clickAtCenter(previous);- await page.getByRole('img', { name: 'Synthetic image 0', exact: true }).waitFor();+ await page.getByRole('dialog').getByRole('img', { name: 'Synthetic image 0', exact: true }).waitFor();} finally {await page.close();}@@ -269,7 +271,7 @@ describe.skipIf(!chrome)('MediaLightbox native video keyboard controls', () => {// class names. All media and callbacks are synthetic and requests intercepted.it.each(['classic-midnight', 'kestrel-neon'])('keeps settings and image/video actions reachable in %s', async theme => {for (const [width, height] of [[360, 640], [390, 667], [360, 800], [768, 1024], [1440, 900]]) {- const page = await browser.newPage({ viewport: { width, height } });+ const page = await browser.newPage({ viewport: { width, height }, hasTouch: true });try {await page.route('**/api/**', route => route.fulfill({ json: { providers: [], items: [] } }));await page.goto(`${origin}lightbox-test?theme=${theme}`);@@ -303,6 +305,14 @@ describe.skipIf(!chrome)('MediaLightbox native video keyboard controls', () => {};await assertReachable(prompt);await assertReachable(aside.getByRole('button', { name: 'Save prompt' }));+ for (const control of await aside.locator('footer button, footer a, button:has-text("Save prompt")').all()) {+ const rect = await control.boundingBox();+ expect(rect.height).toBeGreaterThanOrEqual(44);+ expect(rect.width).toBeGreaterThanOrEqual(44);+ }+ const fullScreen = await page.getByRole('button', { name: 'Full screen', exact: true }).boundingBox();+ expect(fullScreen.width).toBeGreaterThanOrEqual(44);+ expect(fullScreen.height).toBeGreaterThanOrEqual(44);await assertReachable(aside.getByRole('textbox', { name: 'Note' }));for (const control of await aside.locator('footer button, footer a').all()) await assertReachable(control);if (!roomy) expect(await scroll.evaluate(el => el.scrollHeight > el.clientHeight)).toBe(true);@@ -316,4 +326,49 @@ describe.skipIf(!chrome)('MediaLightbox native video keyboard controls', () => {}}, 60000);+ // Real card/menu primitives catch shrinking flex targets and neighboring hits.+ it.each([[360, 800], [768, 1024], [1440, 900]])('gives touch media actions independent 44px targets at %dx%d', async (width, height) => {+ const page = await browser.newPage({ viewport: { width, height }, hasTouch: true, isMobile: true });+ let writes = 0;+ try {+ await page.route('**/api/**', route => {+ if (route.request().method() !== 'GET') writes += 1;+ return route.fulfill({ json: [{ id: 'synthetic', name: 'Synthetic organization', items: [] }] });+ });+ await page.goto(`${origin}lightbox-test`);+ const card = page.locator('#cards > div').first();+ for (const control of await card.locator('button, a').all()) {+ await control.scrollIntoViewIfNeeded();+ const rect = await control.boundingBox();+ expect(rect.width).toBeGreaterThanOrEqual(44);+ expect(rect.height).toBeGreaterThanOrEqual(44);+ const cardRect = await card.boundingBox();+ expect(rect.x).toBeGreaterThanOrEqual(cardRect.x);+ expect(rect.x + rect.width).toBeLessThanOrEqual(cardRect.x + cardRect.width);+ expect(await control.evaluate(el => {+ const r = el.getBoundingClientRect();+ return [-16, 16].every(offset => el.contains(document.elementFromPoint(r.x + r.width / 2 + offset, r.y + r.height / 2)));+ })).toBe(true);+ }+ expect(await card.getByRole('button', { name: 'Remix' }).innerText()).toBe('Remix');+ expect(await page.evaluate(() => document.documentElement.scrollWidth <= innerWidth)).toBe(true);+ for (const name of ['Add to collection', 'Pin to mood board']) {+ const trigger = card.getByRole('button', { name, exact: true });+ await trigger.click();+ const row = page.getByRole('button', { name: 'Synthetic organization', exact: true });+ await row.waitFor();+ expect((await row.boundingBox()).height).toBeGreaterThanOrEqual(43.99);+ await row.focus();+ await page.keyboard.press('Escape');+ await row.waitFor({ state: 'detached' });+ expect(await trigger.evaluate(el => document.activeElement === el)).toBe(true);+ }+ await card.getByRole('button', { name: 'Delete', exact: true }).click();+ await card.getByText('Delete this image?').waitFor();+ expect(writes).toBe(0);+ } finally {+ await page.close();+ }+ }, 60000);+});diff --git a/client/src/components/media/MediaLightbox.jsx b/client/src/components/media/MediaLightbox.jsxindex 13ecc4a227..d94644ec29 100644--- a/client/src/components/media/MediaLightbox.jsx+++ b/client/src/components/media/MediaLightbox.jsx@@ -384,7 +384,7 @@ export default function MediaLightbox({<buttontype="button"onClick={(e) => { e.stopPropagation(); onClose(); }}- className="absolute top-2 left-2 z-30 p-2 rounded-full bg-white text-black hover:bg-white/85 shadow-lg focus:outline-none focus:ring-2 focus:ring-port-accent min-h-[44px] min-w-[44px] flex items-center justify-center"+ className="absolute top-2 left-2 z-30 min-h-[44px] min-w-[44px] flex items-center justify-center p-2 rounded-full bg-white text-black hover:bg-white/85 shadow-lg focus:outline-none focus:ring-2 focus:ring-port-accent"aria-label="Close"title="Close (Esc)">@@ -423,7 +423,7 @@ export default function MediaLightbox({<buttontype="button"onClick={(e) => { e.stopPropagation(); setFullScreen((v) => !v); }}- className="absolute top-2 right-2 z-30 p-2 rounded-full bg-white text-black hover:bg-white/85 shadow-lg focus:outline-none focus:ring-2 focus:ring-port-accent"+ className="absolute top-2 right-2 z-30 min-h-[44px] min-w-[44px] flex items-center justify-center p-2 rounded-full bg-white text-black hover:bg-white/85 shadow-lg focus:outline-none focus:ring-2 focus:ring-port-accent"aria-label={fullScreen ? 'Exit full screen' : 'Full screen'}title={fullScreen ? 'Exit full screen (Esc, F)' : 'Full screen (F)'}>@@ -689,7 +689,7 @@ function SettingsPane({placeholder="Add the prompt used to create this media" rows={5} maxLength={8000}className="w-full bg-port-bg border border-port-border rounded p-2 text-xs text-gray-200 placeholder:text-gray-600 focus:outline-none focus:border-port-accent resize-y" /><div className="flex justify-end mt-1">- <button type="button" onClick={savePrompt} disabled={promptSaving || promptDraft === (item.prompt === '(no prompt)' ? '' : (item.prompt || ''))} className="px-2 py-1 rounded bg-port-accent text-white disabled:opacity-40">Save prompt</button>+ <button type="button" onClick={savePrompt} disabled={promptSaving || promptDraft === (item.prompt === '(no prompt)' ? '' : (item.prompt || ''))} className="min-h-[44px] min-w-[44px] px-2 py-1 rounded bg-port-accent text-white disabled:opacity-40">Save prompt</button></div></div>) : item.prompt ? (@@ -811,7 +811,7 @@ function SettingsPane({<buttontype="button"onClick={onRefine}- className="flex-1 flex items-center justify-center gap-1.5 px-2 py-1.5 text-xs bg-port-accent/80 text-white hover:opacity-90 rounded"+ className="flex-1 min-h-[44px] min-w-[80px] flex items-center justify-center gap-1.5 px-2 py-1.5 text-xs bg-port-accent/80 text-white hover:opacity-90 rounded"><Sparkles className="w-3.5 h-3.5" /> Refine Prompt</button>@@ -821,7 +821,7 @@ function SettingsPane({type="button"onClick={onPromptFrom}title="Ask a vision model to write the image and/or video prompt that would recreate this"- className="flex-1 flex items-center justify-center gap-1.5 px-2 py-1.5 text-xs bg-port-accent/80 text-white hover:opacity-90 rounded"+ className="flex-1 min-h-[44px] min-w-[80px] flex items-center justify-center gap-1.5 px-2 py-1.5 text-xs bg-port-accent/80 text-white hover:opacity-90 rounded"><ScanEye className="w-3.5 h-3.5" /> {item.prompt && item.prompt !== '(no prompt)' ? 'Prompt from this' : 'Analyze prompt'}</button>@@ -830,7 +830,7 @@ function SettingsPane({<buttontype="button"onClick={() => closeThenRun(onRemix)}- className="flex-1 flex items-center justify-center gap-1.5 px-2 py-1.5 text-xs bg-port-accent text-white hover:opacity-90 rounded"+ className="flex-1 min-h-[44px] min-w-[80px] flex items-center justify-center gap-1.5 px-2 py-1.5 text-xs bg-port-accent text-white hover:opacity-90 rounded"><Sparkles className="w-3.5 h-3.5" /> Remix</button>@@ -840,7 +840,7 @@ function SettingsPane({type="button"onClick={() => closeThenRun(onSendToImage)}title="Open this image in Image Gen as the image-to-image source"- className="flex-1 flex items-center justify-center gap-1.5 px-2 py-1.5 text-xs bg-port-accent/80 text-white hover:opacity-90 rounded"+ className="flex-1 min-h-[44px] min-w-[80px] flex items-center justify-center gap-1.5 px-2 py-1.5 text-xs bg-port-accent/80 text-white hover:opacity-90 rounded"><Wand2 className="w-3.5 h-3.5" /> Send to i2i</button>@@ -849,7 +849,7 @@ function SettingsPane({<buttontype="button"onClick={() => closeThenRun(onSendToVideo)}- className="flex-1 flex items-center justify-center gap-1.5 px-2 py-1.5 text-xs bg-port-success text-white hover:opacity-90 rounded"+ className="flex-1 min-h-[44px] min-w-[80px] flex items-center justify-center gap-1.5 px-2 py-1.5 text-xs bg-port-success text-white hover:opacity-90 rounded"><Film className="w-3.5 h-3.5" /> Send to Video</button>@@ -858,7 +858,7 @@ function SettingsPane({<buttontype="button"onClick={() => closeThenRun(onSendTo3d)}- className="flex-1 flex items-center justify-center gap-1.5 px-2 py-1.5 text-xs bg-port-accent-2 text-port-on-accent-2 hover:opacity-90 rounded"+ className="flex-1 min-h-[44px] min-w-[80px] flex items-center justify-center gap-1.5 px-2 py-1.5 text-xs bg-port-accent-2 text-port-on-accent-2 hover:opacity-90 rounded"><Box className="w-3.5 h-3.5" /> Send to 3D</button>@@ -870,7 +870,7 @@ function SettingsPane({onClick={runBusyAction(cleaning, setCleaning, onClean)}title={CLEAN_TOOLTIP}aria-label="Clean image"- className="flex-1 flex items-center justify-center gap-1.5 px-2 py-1.5 text-xs bg-port-warning/80 text-white hover:opacity-90 rounded disabled:opacity-50 disabled:cursor-not-allowed"+ className="flex-1 min-h-[44px] min-w-[80px] flex items-center justify-center gap-1.5 px-2 py-1.5 text-xs bg-port-warning/80 text-white hover:opacity-90 rounded disabled:opacity-50 disabled:cursor-not-allowed"><Eraser className="w-3.5 h-3.5" /> {cleaning ? 'Cleaning…' : 'Clean'}</button>@@ -882,7 +882,7 @@ function SettingsPane({onClick={runBusyAction(removingWatermark, setRemovingWatermark, onRemoveWatermark)}title="Erase the visible Gemini / Nano-Banana ✦ sparkle from the bottom-right corner. Reconstructs just that corner from its surroundings — the rest of the image is untouched. Creates a new variant; the original is kept."aria-label="Remove Gemini watermark sparkle"- className="flex-1 flex items-center justify-center gap-1.5 px-2 py-1.5 text-xs bg-port-warning/80 text-white hover:opacity-90 rounded disabled:opacity-50 disabled:cursor-not-allowed"+ className="flex-1 min-h-[44px] min-w-[80px] flex items-center justify-center gap-1.5 px-2 py-1.5 text-xs bg-port-warning/80 text-white hover:opacity-90 rounded disabled:opacity-50 disabled:cursor-not-allowed"><Sparkles className="w-3.5 h-3.5" /> {removingWatermark ? 'Removing…' : 'Remove ✦'}</button>@@ -894,7 +894,7 @@ function SettingsPane({aria-expanded={regenOpen}title="Regenerate through a local FLUX model (img2img) to overwrite SynthID watermarking. Creates a new variant; the original is kept."aria-label="Regenerate image to defeat SynthID watermark"- className={`flex-1 flex items-center justify-center gap-1.5 px-2 py-1.5 text-xs text-white hover:opacity-90 rounded ${regenOpen ? 'bg-port-accent' : 'bg-port-accent/80'}`}+ className={`flex-1 min-h-[44px] min-w-[80px] flex items-center justify-center gap-1.5 px-2 py-1.5 text-xs text-white hover:opacity-90 rounded ${regenOpen ? 'bg-port-accent' : 'bg-port-accent/80'}`}><Wand2 className="w-3.5 h-3.5" /> Regenerate</button>@@ -964,7 +964,7 @@ function SettingsPane({onClick={runBusyAction(lightRegenerating, setLightRegenerating, (it) => onRegenerate(it, { method: 'light' }))}title="CPU-only spatial pass to disrupt SynthID watermarking (no GPU required). Less reliable than a FLUX round-trip; install a local FLUX runner for the stronger pass. Creates a new variant; the original is kept."aria-label="Light CPU regen to disrupt SynthID watermark"- className="flex-1 flex items-center justify-center gap-1.5 px-2 py-1.5 text-xs text-white hover:opacity-90 rounded bg-port-accent/80 disabled:opacity-50 disabled:cursor-not-allowed"+ className="flex-1 min-h-[44px] min-w-[80px] flex items-center justify-center gap-1.5 px-2 py-1.5 text-xs text-white hover:opacity-90 rounded bg-port-accent/80 disabled:opacity-50 disabled:cursor-not-allowed"><Wand2 className="w-3.5 h-3.5" /> {lightRegenerating ? 'Processing…' : 'Regen (light)'}</button>@@ -973,7 +973,7 @@ function SettingsPane({<buttontype="button"onClick={() => closeThenRun(onContinue)}- className="flex-1 flex items-center justify-center gap-1.5 px-2 py-1.5 text-xs bg-port-accent text-white hover:opacity-90 rounded"+ className="flex-1 min-h-[44px] min-w-[80px] flex items-center justify-center gap-1.5 px-2 py-1.5 text-xs bg-port-accent text-white hover:opacity-90 rounded"><ImageIcon className="w-3.5 h-3.5" /> Continue</button>@@ -997,7 +997,7 @@ function SettingsPane({href={item.downloadUrl}downloadaria-label="Download"- className="flex items-center justify-center gap-1.5 px-2 py-1.5 text-xs bg-port-border hover:bg-port-border/70 text-white rounded"+ className="min-h-[44px] min-w-[44px] flex items-center justify-center gap-1.5 px-2 py-1.5 text-xs bg-port-border hover:bg-port-border/70 text-white rounded"><Download className="w-3.5 h-3.5" /></a>diff --git a/client/src/components/media/PinToMoodBoardMenu.jsx b/client/src/components/media/PinToMoodBoardMenu.jsxindex aaa1278d0f..88328bad60 100644--- a/client/src/components/media/PinToMoodBoardMenu.jsx+++ b/client/src/components/media/PinToMoodBoardMenu.jsx@@ -29,8 +29,8 @@ import {// menu's behavior.const SIZES = {- sm: { button: 'px-1.5 py-1 text-[10px]', icon: 'w-3 h-3' },- md: { button: 'px-2 py-1.5 text-xs', icon: 'w-3.5 h-3.5' },+ sm: { button: 'min-h-[44px] min-w-[44px] px-1.5 py-1 text-[10px]', icon: 'w-3 h-3' },+ md: { button: 'min-h-[44px] min-w-[44px] px-2 py-1.5 text-xs', icon: 'w-3.5 h-3.5' },};// Minimal mirror of the server's media-key vocabulary (server/lib/mediaItemKey@@ -134,7 +134,7 @@ export default function PinToMoodBoardMenu({ item, size = 'sm' }) {type="button"disabled={busyId === board.id}onClick={() => handleTogglePin(board, updateCollections)}- className="w-full flex items-center justify-between gap-2 px-2 py-1.5 text-left text-[12px] text-gray-200 hover:bg-port-border rounded disabled:opacity-50"+ className="w-full min-h-[44px] flex items-center justify-between gap-2 px-2 py-1.5 text-left text-[12px] text-gray-200 hover:bg-port-border rounded disabled:opacity-50"aria-pressed={pinned}><span className="break-words min-w-0 flex-1">{board.name}</span>