2021-10-15 16:34:23 +00:00
|
|
|
<template>
|
2022-12-28 00:32:22 +00:00
|
|
|
<div class="fefdfafb">
|
2021-10-15 16:34:23 +00:00
|
|
|
<MkAvatar class="avatar" :user="$i"/>
|
|
|
|
<div class="main">
|
|
|
|
<div class="header">
|
|
|
|
<MkUserName :user="$i"/>
|
|
|
|
</div>
|
|
|
|
<div class="body">
|
|
|
|
<div class="content">
|
2021-12-25 06:49:37 +00:00
|
|
|
<Mfm :text="text.trim()" :author="$i" :i="$i"/>
|
2021-10-15 16:34:23 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2022-01-14 01:29:18 +00:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { } from 'vue';
|
2021-10-15 16:34:23 +00:00
|
|
|
|
2022-01-14 01:29:18 +00:00
|
|
|
const props = defineProps<{
|
|
|
|
text: string;
|
|
|
|
}>();
|
2021-10-15 16:34:23 +00:00
|
|
|
</script>
|
|
|
|
|
2022-12-27 09:29:39 +00:00
|
|
|
<style lang="scss" scoped>
|
2021-10-15 16:34:23 +00:00
|
|
|
.fefdfafb {
|
|
|
|
display: flex;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2022-07-13 12:41:06 +00:00
|
|
|
overflow: clip;
|
2021-10-15 16:34:23 +00:00
|
|
|
font-size: 0.95em;
|
|
|
|
|
|
|
|
> .avatar {
|
|
|
|
flex-shrink: 0;
|
|
|
|
display: block;
|
|
|
|
margin: 0 10px 0 0;
|
|
|
|
width: 40px;
|
|
|
|
height: 40px;
|
|
|
|
border-radius: 8px;
|
2021-12-25 06:49:37 +00:00
|
|
|
pointer-events: none;
|
2021-10-15 16:34:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
> .main {
|
|
|
|
flex: 1;
|
|
|
|
min-width: 0;
|
|
|
|
|
|
|
|
> .header {
|
|
|
|
margin-bottom: 2px;
|
2021-12-25 06:49:37 +00:00
|
|
|
font-weight: bold;
|
2021-10-15 16:34:23 +00: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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-12-25 23:40:13 +00:00
|
|
|
|
|
|
|
@container (min-width: 350px) {
|
|
|
|
.fefdfafb {
|
|
|
|
> .avatar {
|
|
|
|
margin: 0 10px 0 0;
|
|
|
|
width: 44px;
|
|
|
|
height: 44px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@container (min-width: 500px) {
|
|
|
|
.fefdfafb {
|
|
|
|
> .avatar {
|
|
|
|
margin: 0 12px 0 0;
|
|
|
|
width: 48px;
|
|
|
|
height: 48px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-10-15 16:34:23 +00:00
|
|
|
</style>
|