fix: preserve primary image aspect ratio
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user