mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-27 00:40:58 +01:00
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:
@@ -82,9 +82,8 @@ const InnerContent = ({ item, ...dimensions }: InnerContentProps) => {
|
||||
when={
|
||||
widgetSupportsIntegrations &&
|
||||
item.integrationIds.length === 0 &&
|
||||
"integrationsRequired" in definition &&
|
||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
||||
definition.integrationsRequired !== false
|
||||
(!("integrationsRequired" in definition) || definition.integrationsRequired !== false)
|
||||
}
|
||||
/>
|
||||
<BoardItemMenu offset={4} item={newItem} />
|
||||
|
||||
@@ -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