frontend: fix repaint color
This commit is contained in:
@@ -49,7 +49,7 @@ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|||||||
<Comp
|
<Comp
|
||||||
className={cn(
|
className={cn(
|
||||||
buttonVariants({ variant, size, className }),
|
buttonVariants({ variant, size, className }),
|
||||||
"outline-none cursor-default"
|
"outline-none cursor-default select-none"
|
||||||
)}
|
)}
|
||||||
ref={ref}
|
ref={ref}
|
||||||
tabIndex={-1}
|
tabIndex={-1}
|
||||||
|
|||||||
@@ -493,7 +493,8 @@ export const useStore = createWithEqualityFn<AppState & AppAction>()(
|
|||||||
imageWidth,
|
imageWidth,
|
||||||
imageHeight,
|
imageHeight,
|
||||||
[maskLineGroup],
|
[maskLineGroup],
|
||||||
maskImages
|
maskImages,
|
||||||
|
BRUSH_COLOR
|
||||||
)
|
)
|
||||||
if (useLastLineGroup) {
|
if (useLastLineGroup) {
|
||||||
const temporaryMask = await canvasToImage(maskCanvas)
|
const temporaryMask = await canvasToImage(maskCanvas)
|
||||||
|
|||||||
Reference in New Issue
Block a user