blob: b063a0cdd15d14db894d135847fa3e6f37723734 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
<!--
SPDX-FileCopyrightText: syuilo and misskey-project
SPDX-License-Identifier: AGPL-3.0-only
-->
<template>
<MkA :to="`/chat/room/${room.id}`" class="_panel _gaps_s" :class="$style.root">
<div :class="$style.header">
<div style="font-weight: bold;">{{ room.name }}</div>
<MkAvatar :user="room.owner" :link="false" :class="$style.headerAvatar"/>
</div>
<hr>
<div>{{ room.description }}</div>
</MkA>
</template>
<script lang="ts" setup>
import * as Misskey from 'misskey-js';
const props = defineProps<{
room: Misskey.entities.ChatRoom;
}>();
</script>
<style lang="scss" module>
.root {
padding: 16px;
}
.header {
display: flex;
align-items: center;
}
.headerAvatar {
width: 30px;
height: 30px;
margin-left: auto;
}
</style>
|