mirror of
https://iceshrimp.dev/Crimekillz/jointrashposs.git
synced 2024-11-24 09:49:06 +01:00
22 lines
603 B
Vue
22 lines
603 B
Vue
<template>
|
|
<div class="rounded-lg border border-slate-200 dark:border-slate-700 p-6 mfm-root mb-4 relative overflow-hidden">
|
|
<div class="absolute top-0 left-0 px-1 py-0.5 text-xs bg-slate-200 dark:bg-slate-800 rounded-br-lg z-20">{{ $t('_content.preview') }}</div>
|
|
<div class="ignore" :class="$style.mfmRoot">
|
|
<MkMfm :text="text" baseHost="misskey.io" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import MkMfm from '@/components/mk/Mfm';
|
|
|
|
defineProps<{
|
|
text: string;
|
|
}>();
|
|
</script>
|
|
|
|
<style module>
|
|
.mfmRoot img {
|
|
display: inline;
|
|
}
|
|
</style> |