elk/components/status/StatusBody.vue

34 lines
540 B
Vue
Raw Normal View History

2022-11-14 02:20:07 +00:00
<script setup lang="ts">
import type { Status } from 'masto'
2022-11-20 21:21:53 +00:00
const { status } = defineProps<{
2022-11-14 02:20:07 +00:00
status: Status
}>()
</script>
<template>
2022-11-20 21:21:53 +00:00
<div class="status-body">
<CommonRichContent :content="status.content" />
</div>
2022-11-14 02:20:07 +00:00
</template>
2022-11-14 03:33:09 +00: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 14:54:30 +00:00
--at-apply: my-2;
2022-11-14 03:33:09 +00:00
}
2022-11-14 02:20:07 +00:00
}
</style>