Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F8613304
chat_title.vue
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
chat_title.vue
View Options
<template>
<div
class="chat-title"
:title="title"
>
<UserPopover
v-if="withAvatar && user"
class="avatar-container"
:user-id="user.id"
>
<UserAvatar
class="titlebar-avatar"
:user="user"
/>
</UserPopover>
<RichContent
v-if="user"
class="username"
:title="'@'+(user && user.screen_name_ui)"
:html="htmlTitle"
:emoji="user.emoji || []"
/>
</div>
</template>
<script src="./chat_title.js"></script>
<style lang="scss">
.chat-title {
display: flex;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
--emoji-size: 14px;
.username {
max-width: 100%;
text-overflow: ellipsis;
white-space: nowrap;
display: inline;
word-wrap: break-word;
overflow: hidden;
}
.avatar-container {
align-self: center;
line-height: 1;
}
.titlebar-avatar {
margin-right: 0.5em;
height: 1.5em;
width: 1.5em;
border-radius: var(--roundness);
&.animated::before {
display: none;
}
}
}
</style>
File Metadata
Details
Attached
Mime Type
text/html
Expires
Sat, Oct 25, 3:26 PM (1 d, 5 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
553095
Default Alt Text
chat_title.vue (1 KB)
Attached To
Mode
rPUFE pleroma-fe-upstream
Attached
Detach File
Event Timeline
Log In to Comment