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) => {
|
||||
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.height = width;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user