2021-10-15 18:34:23 +02:00
|
|
|
<template>
|
2021-11-19 11:36:12 +01:00
|
|
|
<div v-size="{ min: [350, 500] }" class="fefdfafb">
|
2021-10-15 18:34:23 +02: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 07:49:37 +01:00
|
|
|
<Mfm :text="text.trim()" :author="$i" :i="$i"/>
|
2021-10-15 18:34:23 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2022-01-14 02:29:18 +01:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { } from 'vue';
|
2021-10-15 18:34:23 +02:00
|
|
|
|
2022-01-14 02:29:18 +01:00
|
|
|
const props = defineProps<{
|
|
|
|
text: string;
|
|
|
|
}>();
|
2021-10-15 18:34:23 +02:00
|
|
|
</script>
|
|
|
|
|
2022-12-27 10:29:39 +01:00
|
|
|
<style lang="scss" scoped>
|
2021-10-15 18:34:23 +02:00
|
|
|
.fefdfafb {
|
|
|
|
display: flex;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2022-07-13 14:41:06 +02:00
|
|
|
overflow: clip;
|
2021-10-15 18:34:23 +02: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 07:49:37 +01:00
|
|
|
pointer-events: none;
|
2021-10-15 18:34:23 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
> .main {
|
|
|
|
flex: 1;
|
|
|
|
min-width: 0;
|
|
|
|
|
|
|
|
> .header {
|
|
|
|
margin-bottom: 2px;
|
2021-12-25 07:49:37 +01:00
|
|
|
font-weight: bold;
|
2021-10-15 18:34:23 +02: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 00:40:13 +01: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 18:34:23 +02:00
|
|
|
</style>
|