diff options
Diffstat (limited to 'src/components/chat_title/chat_title.vue')
| -rw-r--r-- | src/components/chat_title/chat_title.vue | 39 |
1 files changed, 24 insertions, 15 deletions
diff --git a/src/components/chat_title/chat_title.vue b/src/components/chat_title/chat_title.vue index fd42d125..cfd1e6d1 100644 --- a/src/components/chat_title/chat_title.vue +++ b/src/components/chat_title/chat_title.vue @@ -4,16 +4,16 @@ class="chat-title" :title="title" > - <ChatAvatar - v-if="withAvatar" - :user="user" - width="23px" - height="23px" - /> - <span - v-if="withAvatar" - style="margin-right: 0.5em" - /> + <router-link + v-if="withAvatar && user" + :to="getUserProfileLink(user)" + > + <UserAvatar + :user="user" + width="23px" + height="23px" + /> + </router-link> <span class="username" v-html="htmlTitle" @@ -32,11 +32,7 @@ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; - - a { - display: flex; - align-items: center; - } + align-items: center; .username { max-width: 100%; @@ -52,5 +48,18 @@ object-fit: contain } } + + .still-image.avatar { + width: 23px; + height: 23px; + margin-right: 0.5em; + + border-radius: $fallback--avatarAltRadius; + border-radius: var(--avatarAltRadius, $fallback--avatarAltRadius); + + &.animated::before { + display: none; + } + } } </style> |
