elk/components/status/StatusBody.vue

34 lines
547 B
Vue
Raw Normal View History

2022-11-14 05:20:07 +03:00
<script setup lang="ts">
import type { Status } from 'masto'
defineProps<{
status: Status
}>()
// TODO: parse and interop content (link, emojis)
</script>
<template>
<div class="status-body" v-html="sanitize(status.content)" />
</template>
2022-11-14 06:33:09 +03:00
<style lang="postcss">
.status-body {
a {
--at-apply: text-primary hover:underline;
.invisible {
--at-apply: hidden;
}
.ellipsis {
--at-apply: truncate overflow-hidden ws-nowrap;
}
}
b {
--at-apply: font-bold;
}
p {
2022-11-14 17:54:30 +03:00
--at-apply: my-2;
2022-11-14 06:33:09 +03:00
}
2022-11-14 05:20:07 +03:00
}
</style>