mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
feat(ui): tidy
This commit is contained in:
parent
475b6bef53
commit
4d885653e9
@ -40,6 +40,8 @@ export const gallerySlice = createSlice({
|
||||
action: PayloadAction<SelectedImage | undefined>
|
||||
) => {
|
||||
state.selectedImage = action.payload;
|
||||
// TODO: if the user selects an image, disable the auto switch?
|
||||
// state.shouldAutoSwitchToNewImages = false;
|
||||
},
|
||||
setGalleryImageMinimumWidth: (state, action: PayloadAction<number>) => {
|
||||
state.galleryImageMinimumWidth = action.payload;
|
||||
|
@ -89,13 +89,6 @@ const ProgressImagePreview = () => {
|
||||
onResizeStop={(e, direction, ref, delta, position) => {
|
||||
const newRect: Partial<Rect> = {};
|
||||
|
||||
console.log(
|
||||
ref.style.width,
|
||||
ref.style.height,
|
||||
position.x,
|
||||
position.y
|
||||
);
|
||||
|
||||
if (ref.style.width) {
|
||||
newRect.width = ref.style.width;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user