diff --git a/.memory/worklog.json b/.memory/worklog.json index f0079f4..e0f6065 100644 --- a/.memory/worklog.json +++ b/.memory/worklog.json @@ -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 } ] } diff --git a/src/app/page.tsx b/src/app/page.tsx index ec2cf54..24b6bed 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -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 (