mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-21 08:55:08 +01:00
6798effbab
* .formラッパーを削除 * fix type of MkPostFormAttaches * 🚀 * 🎨 * 🎨 * 🎨 * 🎨 * specifiedの時は連合なしをdisabledに * ✌️ * set select default * gap: 2px (max-width: 500px) / 4px * wip * ✌️ * 🎨 * fix maxTextLength * 今後表示しない * 🎨 * cache channel * 🎨 * 連合なしにする * use i18n.ts.neverShow * ✌️ * refactor * fix indent * tweak --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
73 lines
1.2 KiB
Vue
73 lines
1.2 KiB
Vue
<template>
|
|
<div :class="$style.root">
|
|
<MkAvatar :class="$style.avatar" :user="$i" link preview/>
|
|
<div :class="$style.main">
|
|
<div :class="$style.header">
|
|
<MkUserName :user="$i" :nowrap="true"/>
|
|
</div>
|
|
<div>
|
|
<div :class="$style.content">
|
|
<Mfm :text="text.trim()" :author="$i" :i="$i"/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { } from 'vue';
|
|
import { $i } from '@/account';
|
|
|
|
const props = defineProps<{
|
|
text: string;
|
|
}>();
|
|
</script>
|
|
|
|
<style lang="scss" module>
|
|
.root {
|
|
display: flex;
|
|
margin: 0;
|
|
padding: 0;
|
|
overflow: clip;
|
|
font-size: 0.95em;
|
|
}
|
|
|
|
.avatar {
|
|
flex-shrink: 0 !important;
|
|
display: block !important;
|
|
margin: 0 10px 0 0 !important;
|
|
width: 40px !important;
|
|
height: 40px !important;
|
|
border-radius: 8px !important;
|
|
pointer-events: none !important;
|
|
}
|
|
|
|
.main {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.header {
|
|
margin-bottom: 2px;
|
|
font-weight: bold;
|
|
width: 100%;
|
|
overflow: clip;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
@container (min-width: 350px) {
|
|
.avatar {
|
|
margin: 0 10px 0 0 !important;
|
|
width: 44px !important;
|
|
height: 44px !important;
|
|
}
|
|
}
|
|
|
|
@container (min-width: 500px) {
|
|
.avatar {
|
|
margin: 0 12px 0 0 !important;
|
|
width: 48px !important;
|
|
height: 48px !important;
|
|
}
|
|
}
|
|
</style>
|