feat: support more kinds of attachment

This commit is contained in:
三咲智子 2022-11-24 12:05:13 +08:00
parent 73c35b3c11
commit dba069f0ef
No known key found for this signature in database
GPG key ID: 69992F2250DFD93E
3 changed files with 35 additions and 8 deletions

View file

@ -17,8 +17,14 @@ defineEmits<{
<template>
<div relative group>
<status-attachment :attachment="attachment" w-full />
<div absolute right-2 top-2 hover:bg="gray/40" transition-100 p-1 rounded-5 cursor-pointer op-0 group-hover:op-100>
<div v-if="removable" i-ri:close-line text-3 @click="$emit('remove')" />
<div absolute right-2 top-2>
<div
v-if="removable"
hover:bg="gray/40" transition-100 p-1 rounded-5 cursor-pointer op-0 group-hover:op-100
@click="$emit('remove')"
>
<div i-ri:close-line text-3 />
</div>
</div>
</div>
</template>