feat: styling
This commit is contained in:
parent
90c45b435f
commit
10143fffec
5 changed files with 86 additions and 14 deletions
21
components/status/StatusMedia.vue
Normal file
21
components/status/StatusMedia.vue
Normal file
|
@ -0,0 +1,21 @@
|
|||
<script setup lang="ts">
|
||||
import type { Attachment } from 'masto'
|
||||
|
||||
const { attachment } = defineProps<{
|
||||
attachment: Attachment
|
||||
}>()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<template v-if="attachment.type === 'image'">
|
||||
<img
|
||||
class="status-attachment-image"
|
||||
:src="attachment.previewUrl!"
|
||||
:alt="attachment.description!"
|
||||
rounded-lg border="~ gray/10"
|
||||
>
|
||||
</template>
|
||||
<template v-else>
|
||||
TODO: {{ attachment }}
|
||||
</template>
|
||||
</template>
|
Loading…
Add table
Add a link
Reference in a new issue