Skip to content

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

fix: use MediaImage in lightbox main view for peer-sync placeholder support

Adam Eivyabfe9a84c164
diff --git a/client/src/components/media/MediaLightbox.jsx b/client/src/components/media/MediaLightbox.jsx
index 459f29ee50..29178ca7d9 100644
--- a/client/src/components/media/MediaLightbox.jsx
+++ b/client/src/components/media/MediaLightbox.jsx
@@ -5,6 +5,7 @@ import {
} from 'lucide-react';
import PromptRefineModal from './PromptRefineModal';
import AddToCollectionMenu from './AddToCollectionMenu';
+import MediaImage from '../MediaImage';
import { useScrollLock } from '../../hooks/useScrollLock';
import { useSwipeNav } from '../../hooks/useSwipeNav';
import { copyToClipboard } from '../../lib/clipboard';
@@ -230,7 +231,7 @@ export default function MediaLightbox({
laid out as a tiny strip with no reachable close button. */
<video src={item.downloadUrl} controls autoPlay loop playsInline className={imgMax} />
) : (
- <img src={item.previewUrl} alt={item.prompt} className={`${imgMax} object-contain`} />
+ <MediaImage src={item.previewUrl} alt={item.prompt} className={`${imgMax} object-contain`} placeholderClassName="w-full h-full" />
)}
{/* Fail-safe close — the SettingsPane's X is hidden in fullscreen
and unreachable if iOS Safari mis-lays out the page. */}