ui: Make swap size unlock fixed ratio

Coz it is no longer relevant
This commit is contained in:
blessedcoolant 2023-08-30 08:44:34 +12:00
parent 8d4caaabb0
commit 8e4d288f02

View File

@ -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;
},