bug fix: aspect ratio picker options stuck

This commit is contained in:
BFlat committed 2026-03-04 16:45:42 +07:00
1 parent 91a4fa8da0
commit 1650fff9dc
1 file changed
+5
@@ -150,6 +150,10 @@ const popOverLabelToAspectRatio = (
return CommonAspectRatio.Auto;
case "Square":
return CommonAspectRatio.Square;
case "Wide":
return CommonAspectRatio.Wide;
case "Tall":
return CommonAspectRatio.Tall;
case "5:4 (Wide)":
return CommonAspectRatio.WideFiveByFour;
case "4:3 (Wide)":
@@ -176,6 +180,7 @@ const popOverLabelToAspectRatio = (
return CommonAspectRatio.Auto4k;
case "Square (HD)":
return CommonAspectRatio.SquareHd;
}
console.error("Unknown aspect ratio label:", label, "for model:", model.id);
// If we can't find it, return the model's default aspect ratio or Square as fallback