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): wrap MediaCard action row so icons don't overflow narrow cards
Adam Eivy47df2f378ce5
diff --git a/.changelog/NEXT.md b/.changelog/NEXT.mdindex 4e7b67321a..85ddbd0253 100644--- a/.changelog/NEXT.md+++ b/.changelog/NEXT.md@@ -40,6 +40,7 @@ A page-level run dock now slides up from the bottom of the Writers Room while im## Fixed+- Media Gen cards no longer overflow their action button row at narrow widths (6-column `lg:` grid in Image/Video Gen recent-renders). The button strip now uses `flex-wrap` so excess icon buttons spill cleanly onto a second row instead of bleeding past the card border, and the Remix/Continue label truncates instead of forcing the row wider.- Stale-chunk auto-reload now covers Safari ("Importing a module script failed") and Firefox ("error loading dynamically imported module") in addition to Chrome — previously iOS Safari users hit a "Something went wrong" error after a rebuild and had to tap Refresh manually. Detection is shared between `lazyWithReload` (the primary path) and `ErrorBoundary` (safety net), with a one-reload-per-session guard against infinite loops.- `ErrorBoundary` now uses theme-aware `text-port-text` / `text-port-text-muted` / `text-port-on-accent` instead of hardcoded `text-white` / `text-gray-400`, so the fallback UI is readable on light themes (Lumen Glass, etc).- App icon detection: ship `data.sample/apps.json` with PortOS's icon path pre-set to `client/public/portos-logo.png`, and harden `detectAppIcon()` to skip SVGs that embed external `<image href="…">` (the icon endpoint serves SVG with `default-src 'none'` CSP, so those embeds are blocked and the icon renders blank). Detector now also checks `apple-touch-icon.png` and `icon-{192,512}.png` so PWAs without a usable favicon still resolve to a high-res raster. Hit "Detect Icon" once on existing installs to repick.diff --git a/client/src/components/media/AddToCollectionMenu.jsx b/client/src/components/media/AddToCollectionMenu.jsxindex 73470c6878..6ee013543c 100644--- a/client/src/components/media/AddToCollectionMenu.jsx+++ b/client/src/components/media/AddToCollectionMenu.jsx@@ -101,7 +101,7 @@ export default function AddToCollectionMenu({ item }) {};return (- <div ref={wrapperRef} className="relative">+ <div ref={wrapperRef} className="relative shrink-0"><buttontype="button"onClick={handleToggleOpen}diff --git a/client/src/components/media/MediaCard.jsx b/client/src/components/media/MediaCard.jsxindex 30df7bdf64..b8be2d3a27 100644--- a/client/src/components/media/MediaCard.jsx+++ b/client/src/components/media/MediaCard.jsx@@ -67,22 +67,22 @@ export default function MediaCard({{item.seed != null && <span className="px-1.5 py-0.5 bg-port-border text-gray-400 rounded">seed {item.seed}</span>}</div>{!hideActions && (- <div className="flex gap-1">+ <div className="flex flex-wrap gap-1">{!isVideo && onRemix && (<buttontype="button"onClick={() => onRemix(item)}- className="flex-1 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-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"title="Reuse settings">- <Sparkles className="w-3 h-3" /> Remix+ <Sparkles className="w-3 h-3 shrink-0" /> <span className="truncate">Remix</span></button>)}{!isVideo && onSendToVideo && (<buttontype="button"onClick={() => onSendToVideo(item)}- className="flex-1 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 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"><Film className="w-3 h-3" />@@ -92,17 +92,17 @@ export default function MediaCard({<buttontype="button"onClick={() => onContinue(item)}- className="flex-1 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-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"title="Use last frame as Image Gen source">- <ImageIcon className="w-3 h-3" /> Continue+ <ImageIcon className="w-3 h-3 shrink-0" /> <span className="truncate">Continue</span></button>)}{isVideo && onUpscale && !item.upscaledFrom && (<buttontype="button"onClick={() => onUpscale(item)}- className="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 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× (Lanczos, ~10s)"><Maximize2 className="w-3 h-3" />@@ -112,7 +112,7 @@ export default function MediaCard({<ahref={downloadUrl}download- className="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 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"><Download className="w-3 h-3" />@@ -121,7 +121,7 @@ export default function MediaCard({<buttontype="button"onClick={() => onToggleHidden(item)}- className="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 px-1.5 py-1 bg-port-border hover:bg-port-border/70 text-white text-[10px] rounded flex items-center justify-center"title={item.hidden ? 'Unhide (move out of hidden section)' : 'Hide (move to hidden section)'}>{item.hidden ? <EyeOff className="w-3 h-3" /> : <Eye className="w-3 h-3" />}@@ -131,7 +131,7 @@ export default function MediaCard({<buttontype="button"onClick={() => onDelete(item)}- className="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 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"title="Delete"><Trash2 className="w-3 h-3" />