fix: entity state and execute automation cards aren't movable (#2043)
* fix: entity state and execute automation cards aren't movable * fix: disable eslint issue
This commit is contained in:
@@ -77,7 +77,12 @@ export default function SmartHomeEntityStateWidget({
|
||||
onClick={handleClick}
|
||||
w="100%"
|
||||
h="100%"
|
||||
styles={{ root: { cursor: options.clickable && !isEditMode ? "pointer" : "initial" } }}
|
||||
styles={{
|
||||
root: {
|
||||
cursor: options.clickable && !isEditMode ? "pointer" : "initial",
|
||||
pointerEvents: isEditMode ? "none" : undefined,
|
||||
},
|
||||
}}
|
||||
>
|
||||
<Center h="100%" w="100%">
|
||||
<Stack align="center" gap="md">
|
||||
|
||||
@@ -60,7 +60,12 @@ export default function SmartHomeTriggerAutomationWidget({
|
||||
);
|
||||
|
||||
return (
|
||||
<UnstyledButton onClick={handleClick} style={{ cursor: !isEditMode ? "pointer" : "initial" }} w="100%" h="100%">
|
||||
<UnstyledButton
|
||||
onClick={handleClick}
|
||||
style={{ cursor: !isEditMode ? "pointer" : "initial", pointerEvents: isEditMode ? "none" : undefined }}
|
||||
w="100%"
|
||||
h="100%"
|
||||
>
|
||||
{isShowSuccess && (
|
||||
<Overlay>
|
||||
<Center w="100%" h="100%">
|
||||
|
||||
Reference in New Issue
Block a user