2021-10-16 01:34:23 +09:00
|
|
|
<template>
|
2023-04-08 09:01:42 +09:00
|
|
|
<div v-size="{ min: [350, 500] }" class="fefdfafb">
|
2023-04-29 12:47:13 +09:00
|
|
|
<MkAvatar class="avatar" :user="$i" disableLink />
|
2023-04-08 09:01:42 +09:00
|
|
|
<div class="main">
|
|
|
|
<div class="header">
|
|
|
|
<MkUserName :user="$i" />
|
|
|
|
</div>
|
|
|
|
<div class="body">
|
|
|
|
<div class="content">
|
|
|
|
<Mfm :text="preprocess(text).trim()" :author="$i" :i="$i" />
|
|
|
|
</div>
|
2021-10-16 01:34:23 +09:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2022-01-14 10:29:18 +09:00
|
|
|
<script lang="ts" setup>
|
2023-04-08 09:01:42 +09:00
|
|
|
import {} from "vue";
|
|
|
|
import { preprocess } from "@/scripts/preprocess";
|
2021-10-16 01:34:23 +09:00
|
|
|
|
2022-01-14 10:29:18 +09:00
|
|
|
const props = defineProps<{
|
|
|
|
text: string;
|
|
|
|
}>();
|
2021-10-16 01:34:23 +09:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.fefdfafb {
|
|
|
|
display: flex;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2022-07-13 21:41:06 +09:00
|
|
|
overflow: clip;
|
2021-10-16 01:34:23 +09:00
|
|
|
font-size: 0.95em;
|
|
|
|
|
|
|
|
&.min-width_350px {
|
|
|
|
> .avatar {
|
|
|
|
margin: 0 10px 0 0;
|
|
|
|
width: 44px;
|
|
|
|
height: 44px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.min-width_500px {
|
|
|
|
> .avatar {
|
|
|
|
margin: 0 12px 0 0;
|
|
|
|
width: 48px;
|
|
|
|
height: 48px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .avatar {
|
|
|
|
flex-shrink: 0;
|
|
|
|
display: block;
|
|
|
|
margin: 0 10px 0 0;
|
|
|
|
width: 40px;
|
|
|
|
height: 40px;
|
|
|
|
border-radius: 8px;
|
2021-12-25 15:49:37 +09:00
|
|
|
pointer-events: none;
|
2021-10-16 01:34:23 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
> .main {
|
|
|
|
flex: 1;
|
|
|
|
min-width: 0;
|
|
|
|
|
|
|
|
> .header {
|
|
|
|
margin-bottom: 2px;
|
2021-12-25 15:49:37 +09:00
|
|
|
font-weight: bold;
|
2021-10-16 01:34:23 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
> .body {
|
|
|
|
> .cw {
|
|
|
|
cursor: default;
|
|
|
|
display: block;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
overflow-wrap: break-word;
|
|
|
|
|
|
|
|
> .text {
|
|
|
|
margin-right: 8px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
> .content {
|
|
|
|
> .text {
|
|
|
|
cursor: default;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|