diff --git a/.memory/worklog.json b/.memory/worklog.json index 7623ffb..224d3b3 100644 --- a/.memory/worklog.json +++ b/.memory/worklog.json @@ -1860,6 +1860,13 @@ "message": "auto-save 2026-05-20 22:54 (~3)", "hash": "7697754", "files_changed": 3 + }, + { + "ts": "2026-05-20T23:55:28+08:00", + "type": "commit", + "message": "auto-save 2026-05-20 23:53 (~2)", + "hash": "e85be86", + "files_changed": 2 } ] } diff --git a/src/app/globals.css b/src/app/globals.css index 0224ccf..3243a4a 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -1028,7 +1028,8 @@ input, textarea { 0 0 0 1px rgba(255, 255, 255, 0.22); } -.gallery-center-preview img { +.gallery-center-preview img, +.gallery-center-preview video { display: block; width: min(74vw, 960px); height: 82vh; @@ -1090,7 +1091,8 @@ input, textarea { background: #fff; } -.gallery-drawer-card__image img { +.gallery-drawer-card__image img, +.gallery-drawer-card__image video { display: block; width: 100%; height: 100%; diff --git a/src/components/HoverImagePreview.tsx b/src/components/HoverImagePreview.tsx index e0ba875..5b34a8c 100644 --- a/src/components/HoverImagePreview.tsx +++ b/src/components/HoverImagePreview.tsx @@ -108,3 +108,58 @@ export function HoverImagePreview({ ); } + +export function HoverVideoPreview({ + src, + className, + aspectRatio, +}: { + src: string; + className?: string; + aspectRatio?: string; +}) { + const [preview, setPreview] = useState(null); + const [mounted, setMounted] = useState(false); + + useEffect(() => { + setMounted(true); + }, []); + + return ( + <> +