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>
|
action: PayloadAction<SelectedImage | undefined>
|
||||||
) => {
|
) => {
|
||||||
state.selectedImage = action.payload;
|
state.selectedImage = action.payload;
|
||||||
|
// TODO: if the user selects an image, disable the auto switch?
|
||||||
|
// state.shouldAutoSwitchToNewImages = false;
|
||||||
},
|
},
|
||||||
setGalleryImageMinimumWidth: (state, action: PayloadAction<number>) => {
|
setGalleryImageMinimumWidth: (state, action: PayloadAction<number>) => {
|
||||||
state.galleryImageMinimumWidth = action.payload;
|
state.galleryImageMinimumWidth = action.payload;
|
||||||
|
@ -89,13 +89,6 @@ const ProgressImagePreview = () => {
|
|||||||
onResizeStop={(e, direction, ref, delta, position) => {
|
onResizeStop={(e, direction, ref, delta, position) => {
|
||||||
const newRect: Partial<Rect> = {};
|
const newRect: Partial<Rect> = {};
|
||||||
|
|
||||||
console.log(
|
|
||||||
ref.style.width,
|
|
||||||
ref.style.height,
|
|
||||||
position.x,
|
|
||||||
position.y
|
|
||||||
);
|
|
||||||
|
|
||||||
if (ref.style.width) {
|
if (ref.style.width) {
|
||||||
newRect.width = ref.style.width;
|
newRect.width = ref.style.width;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user