feat: show edit indicator for posts (#90)
This commit is contained in:
parent
d177753775
commit
2c774eba98
2 changed files with 19 additions and 5 deletions
11
components/status/StatusEditIndicator.vue
Normal file
11
components/status/StatusEditIndicator.vue
Normal file
|
@ -0,0 +1,11 @@
|
|||
<script setup lang="ts">
|
||||
const props = defineProps<{ editedAt: string }>()
|
||||
|
||||
const editedAt = useFormattedDateTime(props.editedAt)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<CommonTooltip :content="`Edited ${editedAt}`">
|
||||
<time :title="props.editedAt" :datetime="props.editedAt" underline decoration-dashed> *</time>
|
||||
</CommonTooltip>
|
||||
</template>
|
Loading…
Add table
Add a link
Reference in a new issue