Skip to content

Commit caa9760

Browse files
fix(ui): aspect ratios out of order
1 parent 72a6d1e commit caa9760

File tree

1 file changed

+2
-2
lines changed
  • invokeai/frontend/web/src/features/controlLayers/store

1 file changed

+2
-2
lines changed

invokeai/frontend/web/src/features/controlLayers/store/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ export type LoRA = {
433433

434434
export type EphemeralProgressImage = { sessionId: string; image: ProgressImage };
435435

436-
export const zAspectRatioID = z.enum(['Free', '21:9', '9:21', '16:9', '3:2', '4:3', '1:1', '3:4', '2:3', '9:16']);
436+
export const zAspectRatioID = z.enum(['Free', '21:9', '16:9', '3:2', '4:3', '1:1', '3:4', '2:3', '9:16', '9:21']);
437437
export type AspectRatioID = z.infer<typeof zAspectRatioID>;
438438
export const isAspectRatioID = (v: unknown): v is AspectRatioID => zAspectRatioID.safeParse(v).success;
439439
export const ASPECT_RATIO_MAP: Record<Exclude<AspectRatioID, 'Free'>, { ratio: number; inverseID: AspectRatioID }> = {
@@ -469,7 +469,7 @@ export const CHATGPT_ASPECT_RATIOS: Record<ChatGPT4oAspectRatio, Dimensions> = {
469469
'2:3': { width: 1024, height: 1536 },
470470
} as const;
471471

472-
export const zFluxKontextAspectRatioID = z.enum(['21:9', '4:3', '1:1', '3:4', '9:21', '16:9', '9:16']);
472+
export const zFluxKontextAspectRatioID = z.enum(['21:9', '16:9', '4:3', '1:1', '3:4', '9:16', '9:21']);
473473
type FluxKontextAspectRatio = z.infer<typeof zFluxKontextAspectRatioID>;
474474
export const isFluxKontextAspectRatioID = (v: unknown): v is z.infer<typeof zFluxKontextAspectRatioID> =>
475475
zFluxKontextAspectRatioID.safeParse(v).success;

0 commit comments

Comments
 (0)