diff --git a/packages/widgets/src/smart-home/entity-state/component.tsx b/packages/widgets/src/smart-home/entity-state/component.tsx index ece090c56..587978a42 100644 --- a/packages/widgets/src/smart-home/entity-state/component.tsx +++ b/packages/widgets/src/smart-home/entity-state/component.tsx @@ -13,6 +13,7 @@ export default function SmartHomeEntityStateWidget({ options, integrationIds, isEditMode, + width, }: WidgetComponentProps<"smartHome-entityState">) { // It will always have at least one integration as otherwise the NoIntegrationSelectedError would be thrown in item-content.tsx // eslint-disable-next-line @typescript-eslint/no-non-null-assertion @@ -71,6 +72,7 @@ export default function SmartHomeEntityStateWidget({ ], [handleClick, options.clickable, options.displayName, options.entityId], ); + const isTiny = width < 128; return (
- + {options.displayName} - + {entityState} {attribute} diff --git a/packages/widgets/src/smart-home/execute-automation/component.tsx b/packages/widgets/src/smart-home/execute-automation/component.tsx index 7834b08f9..45bb8ce15 100644 --- a/packages/widgets/src/smart-home/execute-automation/component.tsx +++ b/packages/widgets/src/smart-home/execute-automation/component.tsx @@ -1,7 +1,7 @@ "use client"; import React from "react"; -import { ActionIcon, Center, LoadingOverlay, Overlay, Stack, Text, UnstyledButton } from "@mantine/core"; +import { Center, LoadingOverlay, Overlay, Stack, Text, ThemeIcon, UnstyledButton } from "@mantine/core"; import { useDisclosure, useTimeout } from "@mantine/hooks"; import { IconAutomation, IconCheck } from "@tabler/icons-react"; @@ -15,6 +15,7 @@ export default function SmartHomeTriggerAutomationWidget({ options, integrationIds, isEditMode, + width, }: WidgetComponentProps<"smartHome-executeAutomation">) { const [isShowSuccess, { open: showSuccess, close: closeSuccess }] = useDisclosure(); const { start } = useTimeout(() => { @@ -59,6 +60,8 @@ export default function SmartHomeTriggerAutomationWidget({ [handleClick, options.automationId, options.displayName], ); + const isTiny = width < 128; + return (
- + - +
)}
- - {options.displayName} + + + {options.displayName} +