mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-02 16:38:14 +00:00
bug fix: aspect ratio picker options stuck
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user