2021-10-16 01:34:23 +09:00
|
|
|
<template>
|
2021-11-19 19:36:12 +09:00
|
|
|
<div v-size="{ min: [350, 500] }" class="fefdfafb">
|
2021-10-16 01:34:23 +09: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 15:49:37 +09:00
|
|
|
<Mfm :text="text.trim()" :author="$i" :i="$i"/>
|
2021-10-16 01:34:23 +09:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2022-01-14 10:29:18 +09:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { } from 'vue';
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-12-26 08:40:13 +09: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-16 01:34:23 +09:00
|
|
|
</style>
|