mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
Disabled bounding box settings when locked
This commit is contained in:
parent
21483f5d07
commit
eb9028ab30
@ -145,14 +145,16 @@ const BoundingBoxSettings = () => {
|
||||
width={'5rem'}
|
||||
/>
|
||||
<IAIIconButton
|
||||
isDisabled={shouldLockBoundingBox}
|
||||
size={'sm'}
|
||||
aria-label={'Reset Width'}
|
||||
tooltip={'Reset Width'}
|
||||
onClick={handleResetWidth}
|
||||
icon={<BiReset />}
|
||||
styleClass="inpainting-bounding-box-reset-icon-btn"
|
||||
isDisabled={canvasDimensions.width === boundingBoxDimensions.width}
|
||||
isDisabled={
|
||||
shouldLockBoundingBox ||
|
||||
canvasDimensions.width === boundingBoxDimensions.width
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
<div className="inpainting-bounding-box-dimensions-slider-numberinput">
|
||||
@ -177,7 +179,6 @@ const BoundingBoxSettings = () => {
|
||||
width={'5rem'}
|
||||
/>
|
||||
<IAIIconButton
|
||||
isDisabled={shouldLockBoundingBox}
|
||||
size={'sm'}
|
||||
aria-label={'Reset Height'}
|
||||
tooltip={'Reset Height'}
|
||||
@ -185,6 +186,7 @@ const BoundingBoxSettings = () => {
|
||||
icon={<BiReset />}
|
||||
styleClass="inpainting-bounding-box-reset-icon-btn"
|
||||
isDisabled={
|
||||
shouldLockBoundingBox ||
|
||||
canvasDimensions.height === boundingBoxDimensions.height
|
||||
}
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user