From 928b4a3ddc568ba1a9a1dd061753c5cfcfc8586d Mon Sep 17 00:00:00 2001 From: "juancarlos.cavero" Date: Sat, 18 Jul 2026 13:56:20 +0200 Subject: [PATCH] fix(ui): hide model name in HUD badge; show clips at true aspect with resolution chip --- dashboard/src/components/ProcessingAnimation.jsx | 2 +- dashboard/src/components/ResultCard.jsx | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/dashboard/src/components/ProcessingAnimation.jsx b/dashboard/src/components/ProcessingAnimation.jsx index bc1eee2..75f0e80 100644 --- a/dashboard/src/components/ProcessingAnimation.jsx +++ b/dashboard/src/components/ProcessingAnimation.jsx @@ -137,7 +137,7 @@ const ProcessingAnimation = ({ media, isComplete, syncedTime, isSyncedPlaying, s {!isSyncedPlaying && !isComplete && (
- AI_MODEL: GEMINI-2.5-PRO + VIRAL_DETECTION: ACTIVE
)} diff --git a/dashboard/src/components/ResultCard.jsx b/dashboard/src/components/ResultCard.jsx index 69e806f..104a424 100644 --- a/dashboard/src/components/ResultCard.jsx +++ b/dashboard/src/components/ResultCard.jsx @@ -44,6 +44,7 @@ export default function ResultCard({ clip, index, jobId, durableUrl, uploadPostK // A reopened project seeds it from the persisted project state. const [serverVideoFile, setServerVideoFile] = useState(initialState?.server_file || (clip.video_url || '').split('/').pop()); const [videoErrored, setVideoErrored] = useState(false); + const [resolution, setResolution] = useState(null); // If the local video failed and a durable R2 URL is (now) available, use it. // Handles the race where the video errors before the durable URL has loaded. @@ -511,8 +512,11 @@ export default function ResultCard({ clip, index, jobId, durableUrl, uploadPostK ref={videoRef} src={currentVideoUrl} controls - className="w-full h-full object-cover" + className="w-full h-full object-contain" playsInline + onLoadedMetadata={(e) => { + if (e.target.videoWidth) setResolution(`${e.target.videoWidth}×${e.target.videoHeight}`); + }} onError={() => { // Local /videos/ file gone (e.g. cleaned up after a reload) → // fall back to the durable R2 copy for managed users. If the @@ -556,6 +560,7 @@ export default function ResultCard({ clip, index, jobId, durableUrl, uploadPostK
{durationReadout && {durationReadout}} + {resolution && {resolution}} #shorts #viral