refactor: update button icon rendering in AttachmentArea component

This commit is contained in:
Shariq Ansari 2025-07-30 16:12:21 +05:30
parent af830b8782
commit 63d6062673

View File

@ -50,10 +50,12 @@
togglePrivate(attachment.name, attachment.is_private) togglePrivate(attachment.name, attachment.is_private)
" "
> >
<FeatherIcon <template #icon>
:name="attachment.is_private ? 'lock' : 'unlock'" <FeatherIcon
class="size-3 text-ink-gray-7" :name="attachment.is_private ? 'lock' : 'unlock'"
/> class="size-3 text-ink-gray-7"
/>
</template>
</Button> </Button>
</div> </div>
</Tooltip> </Tooltip>
@ -63,7 +65,12 @@
class="!size-5" class="!size-5"
@click.stop="() => deleteAttachment(attachment.name)" @click.stop="() => deleteAttachment(attachment.name)"
> >
<FeatherIcon name="trash-2" class="size-3 text-ink-gray-7" /> <template #icon>
<FeatherIcon
name="trash-2"
class="size-3 text-ink-gray-7"
/>
</template>
</Button> </Button>
</div> </div>
</Tooltip> </Tooltip>