2021-10-15 09:34:23 -07:00
|
|
|
<template>
|
2023-01-14 18:22:58 -08:00
|
|
|
<div :class="$style.root">
|
2023-01-15 21:18:11 -08:00
|
|
|
<MkAvatar :class="$style.avatar" :user="$i" link preview/>
|
2023-01-14 18:22:58 -08:00
|
|
|
<div :class="$style.main">
|
|
|
|
<div :class="$style.header">
|
2023-04-04 22:30:03 -07:00
|
|
|
<MkUserName :user="$i" :nowrap="true"/>
|
2021-10-15 09:34:23 -07:00
|
|
|
</div>
|
2023-01-14 18:22:58 -08:00
|
|
|
<div>
|
2023-06-01 01:19:46 -07:00
|
|
|
<div>
|
2021-12-24 22:49:37 -08:00
|
|
|
<Mfm :text="text.trim()" :author="$i" :i="$i"/>
|
2021-10-15 09:34:23 -07:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2022-01-13 17:29:18 -08:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { } from 'vue';
|
2023-03-31 21:52:07 -07:00
|
|
|
import { $i } from '@/account';
|
2021-10-15 09:34:23 -07:00
|
|
|
|
2022-01-13 17:29:18 -08:00
|
|
|
const props = defineProps<{
|
|
|
|
text: string;
|
|
|
|
}>();
|
2021-10-15 09:34:23 -07:00
|
|
|
</script>
|
|
|
|
|
2023-01-14 18:22:58 -08:00
|
|
|
<style lang="scss" module>
|
|
|
|
.root {
|
2021-10-15 09:34:23 -07:00
|
|
|
display: flex;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2022-07-13 05:41:06 -07:00
|
|
|
overflow: clip;
|
2021-10-15 09:34:23 -07:00
|
|
|
font-size: 0.95em;
|
2023-01-14 18:22:58 -08:00
|
|
|
}
|
2021-10-15 09:34:23 -07:00
|
|
|
|
2023-01-14 18:22:58 -08:00
|
|
|
.avatar {
|
|
|
|
flex-shrink: 0 !important;
|
|
|
|
display: block !important;
|
|
|
|
margin: 0 10px 0 0 !important;
|
|
|
|
width: 40px !important;
|
|
|
|
height: 40px !important;
|
|
|
|
border-radius: 8px !important;
|
|
|
|
pointer-events: none !important;
|
|
|
|
}
|
2021-10-15 09:34:23 -07:00
|
|
|
|
2023-01-14 18:22:58 -08:00
|
|
|
.main {
|
|
|
|
flex: 1;
|
|
|
|
min-width: 0;
|
|
|
|
}
|
2021-10-15 09:34:23 -07:00
|
|
|
|
2023-01-14 18:22:58 -08:00
|
|
|
.header {
|
|
|
|
margin-bottom: 2px;
|
|
|
|
font-weight: bold;
|
2023-04-04 22:30:03 -07:00
|
|
|
width: 100%;
|
|
|
|
overflow: clip;
|
|
|
|
text-overflow: ellipsis;
|
2021-10-15 09:34:23 -07:00
|
|
|
}
|
2022-12-25 15:40:13 -08:00
|
|
|
|
|
|
|
@container (min-width: 350px) {
|
2023-01-14 18:22:58 -08:00
|
|
|
.avatar {
|
|
|
|
margin: 0 10px 0 0 !important;
|
|
|
|
width: 44px !important;
|
|
|
|
height: 44px !important;
|
2022-12-25 15:40:13 -08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@container (min-width: 500px) {
|
2023-01-14 18:22:58 -08:00
|
|
|
.avatar {
|
|
|
|
margin: 0 12px 0 0 !important;
|
|
|
|
width: 48px !important;
|
|
|
|
height: 48px !important;
|
2022-12-25 15:40:13 -08:00
|
|
|
}
|
|
|
|
}
|
2021-10-15 09:34:23 -07:00
|
|
|
</style>
|