fix: preserve primary image aspect ratio

This commit is contained in:
2026-05-20 17:13:15 +08:00
parent 36c93cddf8
commit 288b695de2
2 changed files with 11 additions and 0 deletions

View File

@@ -92,6 +92,10 @@ function ProjectBrief({ session }: { session: GenSession }) {
const [previewOpen, setPreviewOpen] = useState(false);
const [primaryAspectRatio, setPrimaryAspectRatio] = useState('1 / 1');
useEffect(() => {
setPrimaryAspectRatio('1 / 1');
}, [primaryImage?.url]);
return (
<section className="project-brief-panel">
<div className="flex items-start justify-between gap-4">