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