Fix icon colours in automation list

This commit is contained in:
Andrew Kingston 2024-08-22 17:09:37 +01:00
parent 2a67c0e09e
commit cc20e7dd52
No known key found for this signature in database
1 changed files with 4 additions and 13 deletions

View File

@ -99,7 +99,9 @@
<NavItem <NavItem
on:contextmenu={openContextMenu} on:contextmenu={openContextMenu}
{icon} {icon}
iconColor={"var(--spectrum-global-color-gray-900)"} iconColor={automation.disabled
? "var(--spectrum-global-color-gray-600)"
: "var(--spectrum-global-color-gray-900)"}
text={automation.displayName} text={automation.displayName}
selected={automation._id === $selectedAutomation?._id} selected={automation._id === $selectedAutomation?._id}
hovering={automation._id === $contextMenuStore.id} hovering={automation._id === $contextMenuStore.id}
@ -107,9 +109,7 @@
selectedBy={$userSelectedResourceMap[automation._id]} selectedBy={$userSelectedResourceMap[automation._id]}
disabled={automation.disabled} disabled={automation.disabled}
> >
<div class="icon"> <Icon on:click={openContextMenu} size="S" hoverable name="MoreSmallList" />
<Icon on:click={openContextMenu} size="S" hoverable name="MoreSmallList" />
</div>
</NavItem> </NavItem>
<ConfirmDialog <ConfirmDialog
@ -123,12 +123,3 @@
This action cannot be undone. This action cannot be undone.
</ConfirmDialog> </ConfirmDialog>
<UpdateAutomationModal {automation} bind:this={updateAutomationDialog} /> <UpdateAutomationModal {automation} bind:this={updateAutomationDialog} />
<style>
div.icon {
display: flex;
flex-direction: row;
justify-content: flex-end;
align-items: center;
}
</style>