misc: clean up actions
This commit is contained in:
1 parent
f38011e0c6
commit
c0b93f65a9
5 files changed
+124
-40
No files matched your search
@@ -19,12 +19,13 @@
|
||||
alignment="left"
|
||||
color="tertiary"
|
||||
size="lg"
|
||||
class="focus:bg-slate-200 focus:dark:bg-zinc-800"
|
||||
class="focus:bg-slate-200 focus:dark:bg-zinc-800 block {$$props.class}"
|
||||
>
|
||||
{#if typeof action.icon === 'string'}
|
||||
<Avatar url={action.icon} width={20} />
|
||||
{:else}
|
||||
<Icon src={action.icon ?? QuestionMarkCircle} size="20" />
|
||||
{/if}
|
||||
<slot />
|
||||
{action.name}
|
||||
</Button>
|
||||
Reference in new issue
Block a user