diff --git a/invokeai/frontend/web/src/features/canvas/store/canvasSlice.ts b/invokeai/frontend/web/src/features/canvas/store/canvasSlice.ts index 9bba44e3ea..550cfff4bc 100644 --- a/invokeai/frontend/web/src/features/canvas/store/canvasSlice.ts +++ b/invokeai/frontend/web/src/features/canvas/store/canvasSlice.ts @@ -240,7 +240,7 @@ export const canvasSlice = createSlice({ state.scaledBoundingBoxDimensions = scaledDimensions; } }, - toggleBoundingBoxDimensions: (state) => { + flipBoundingBoxAxes: (state) => { const [currWidth, currHeight] = [ state.boundingBoxDimensions.width, state.boundingBoxDimensions.height, @@ -931,7 +931,7 @@ export const { setBoundingBoxDimensions, setBoundingBoxPreviewFill, setBoundingBoxScaleMethod, - toggleBoundingBoxDimensions, + flipBoundingBoxAxes, setBrushColor, setBrushSize, setCanvasContainerDimensions, diff --git a/invokeai/frontend/web/src/features/parameters/components/Parameters/Canvas/BoundingBox/ParamBoundingBoxSize.tsx b/invokeai/frontend/web/src/features/parameters/components/Parameters/Canvas/BoundingBox/ParamBoundingBoxSize.tsx index 6c0ab0cd85..3c07768461 100644 --- a/invokeai/frontend/web/src/features/parameters/components/Parameters/Canvas/BoundingBox/ParamBoundingBoxSize.tsx +++ b/invokeai/frontend/web/src/features/parameters/components/Parameters/Canvas/BoundingBox/ParamBoundingBoxSize.tsx @@ -1,7 +1,7 @@ import { Flex, Spacer, Text } from '@chakra-ui/react'; import { useAppDispatch } from 'app/store/storeHooks'; import IAIIconButton from 'common/components/IAIIconButton'; -import { toggleBoundingBoxDimensions } from 'features/canvas/store/canvasSlice'; +import { flipBoundingBoxAxes } from 'features/canvas/store/canvasSlice'; import { useTranslation } from 'react-i18next'; import { MdOutlineSwapVert } from 'react-icons/md'; import ParamAspectRatio from '../../Core/ParamAspectRatio'; @@ -47,7 +47,7 @@ export default function ParamBoundingBoxSize() { size="sm" icon={} fontSize={20} - onClick={() => dispatch(toggleBoundingBoxDimensions())} + onClick={() => dispatch(flipBoundingBoxAxes())} />