fix: preserve primary image aspect ratio
This commit is contained in:
@@ -1580,6 +1580,13 @@
|
||||
"message": "fix: improve project brief preview layout",
|
||||
"hash": "8d4275f",
|
||||
"files_changed": 3
|
||||
},
|
||||
{
|
||||
"ts": "2026-05-20T17:11:41+08:00",
|
||||
"type": "commit",
|
||||
"message": "auto-save 2026-05-20 17:11 (~2)",
|
||||
"hash": "36c93cd",
|
||||
"files_changed": 2
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -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