mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
ui: Make swap size unlock fixed ratio
Coz it is no longer relevant
This commit is contained in:
parent
8d4caaabb0
commit
8e4d288f02
@ -152,6 +152,9 @@ export const generationSlice = createSlice({
|
|||||||
},
|
},
|
||||||
toggleSize: (state) => {
|
toggleSize: (state) => {
|
||||||
const [width, height] = [state.width, state.height];
|
const [width, height] = [state.width, state.height];
|
||||||
|
if (![null, 2 / 3, 16 / 9, 1 / 1].includes(height / width)) {
|
||||||
|
state.aspectRatio = null;
|
||||||
|
}
|
||||||
state.width = height;
|
state.width = height;
|
||||||
state.height = width;
|
state.height = width;
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user