2020-05-07 06:10:53 -07:00
|
|
|
<template>
|
|
|
|
<!-- eslint-disable vue/no-v-html -->
|
|
|
|
<div
|
|
|
|
class="chat-title"
|
|
|
|
:title="title"
|
|
|
|
>
|
2020-06-21 07:13:29 -07:00
|
|
|
<router-link
|
|
|
|
v-if="withAvatar && user"
|
|
|
|
:to="getUserProfileLink(user)"
|
|
|
|
>
|
|
|
|
<UserAvatar
|
|
|
|
:user="user"
|
|
|
|
width="23px"
|
|
|
|
height="23px"
|
|
|
|
/>
|
|
|
|
</router-link>
|
2020-05-07 06:10:53 -07:00
|
|
|
<span
|
|
|
|
class="username"
|
|
|
|
v-html="htmlTitle"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<!-- eslint-enable vue/no-v-html -->
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script src="./chat_title.js"></script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
@import '../../_variables.scss';
|
|
|
|
|
|
|
|
.chat-title {
|
|
|
|
display: flex;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
2020-06-21 07:13:29 -07:00
|
|
|
align-items: center;
|
2020-05-07 06:10:53 -07:00
|
|
|
|
|
|
|
.username {
|
|
|
|
max-width: 100%;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
|
|
|
display: inline;
|
|
|
|
word-wrap: break-word;
|
2020-07-07 13:33:08 -07:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
2020-05-07 06:10:53 -07:00
|
|
|
|
|
|
|
.emoji {
|
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
|
|
|
vertical-align: middle;
|
|
|
|
object-fit: contain
|
|
|
|
}
|
|
|
|
}
|
2020-06-21 07:13:29 -07:00
|
|
|
|
2020-08-18 13:57:42 -07:00
|
|
|
.Avatar {
|
2020-06-21 07:13:29 -07:00
|
|
|
width: 23px;
|
|
|
|
height: 23px;
|
|
|
|
margin-right: 0.5em;
|
|
|
|
|
|
|
|
border-radius: $fallback--avatarAltRadius;
|
|
|
|
border-radius: var(--avatarAltRadius, $fallback--avatarAltRadius);
|
|
|
|
|
|
|
|
&.animated::before {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2020-05-07 06:10:53 -07:00
|
|
|
}
|
|
|
|
</style>
|