2018-05-02 00:05:36 +00:00
|
|
|
<a href="/accounts/{verifyCredentials.id}"
|
2018-04-11 05:08:14 +00:00
|
|
|
class="compose-box-avatar"
|
2018-08-20 02:31:54 +00:00
|
|
|
aria-label="Profile for {accessibleName}">
|
2018-05-02 00:05:36 +00:00
|
|
|
<Avatar account={verifyCredentials} size="small"/>
|
2018-04-03 00:53:04 +00:00
|
|
|
</a>
|
2018-05-02 00:05:36 +00:00
|
|
|
<a class="compose-box-display-name" href="/accounts/{verifyCredentials.id}">
|
2018-08-19 22:23:40 +00:00
|
|
|
<AccountDisplayName account={verifyCredentials} />
|
2018-02-27 05:54:21 +00:00
|
|
|
</a>
|
|
|
|
<span class="compose-box-handle">
|
2018-05-02 00:05:36 +00:00
|
|
|
{'@' + verifyCredentials.acct}
|
2018-02-27 05:54:21 +00:00
|
|
|
</span>
|
|
|
|
<style>
|
2018-04-03 00:53:04 +00:00
|
|
|
.compose-box-avatar {
|
2018-02-27 05:54:21 +00:00
|
|
|
grid-area: avatar;
|
|
|
|
margin-right: 15px;
|
|
|
|
}
|
|
|
|
.compose-box-display-name {
|
|
|
|
color: var(--deemphasized-text-color);
|
2018-03-03 23:44:43 +00:00
|
|
|
grid-area: name;
|
2018-02-27 05:54:21 +00:00
|
|
|
min-width: 0;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
font-size: 1.1em;
|
|
|
|
margin-left: 5px;
|
|
|
|
font-weight: 600;
|
|
|
|
}
|
|
|
|
.compose-box-display-name,
|
|
|
|
.compose-box-display-name:hover,
|
|
|
|
.compose-box-display-name:visited {
|
|
|
|
color: var(--body-text-color);
|
|
|
|
}
|
|
|
|
:global(.compose-box-handle) {
|
|
|
|
grid-area: handle;
|
|
|
|
color: var(--deemphasized-text-color);
|
|
|
|
min-width: 0;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
font-size: 1.1em;
|
|
|
|
margin-left: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: 767px) {
|
2018-04-03 00:53:04 +00:00
|
|
|
.compose-box-avatar {
|
2018-02-27 05:54:21 +00:00
|
|
|
grid-area: avatar;
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
<script>
|
|
|
|
import Avatar from '../Avatar.html'
|
2018-03-14 00:14:57 +00:00
|
|
|
import { store } from '../../_store/store'
|
2018-08-19 22:23:40 +00:00
|
|
|
import AccountDisplayName from '../profile/AccountDisplayName.html'
|
2018-08-20 02:31:54 +00:00
|
|
|
import { removeEmoji } from '../../_utils/removeEmoji'
|
2018-08-19 22:23:40 +00:00
|
|
|
|
2018-02-27 05:54:21 +00:00
|
|
|
export default {
|
|
|
|
components: {
|
2018-08-19 22:23:40 +00:00
|
|
|
Avatar,
|
|
|
|
AccountDisplayName
|
2018-03-03 18:11:32 +00:00
|
|
|
},
|
2018-03-14 00:14:57 +00:00
|
|
|
store: () => store,
|
2018-03-03 18:11:32 +00:00
|
|
|
computed: {
|
2018-08-20 02:31:54 +00:00
|
|
|
verifyCredentials: ({ $currentVerifyCredentials }) => $currentVerifyCredentials,
|
|
|
|
emojis: ({ verifyCredentials }) => (verifyCredentials.emojis || []),
|
|
|
|
displayName: ({ verifyCredentials }) => verifyCredentials.display_name || verifyCredentials.username,
|
|
|
|
accessibleName: ({ displayName, emojis, $omitEmojiInDisplayNames }) => {
|
|
|
|
if ($omitEmojiInDisplayNames) {
|
|
|
|
return removeEmoji(displayName, emojis) || displayName
|
|
|
|
}
|
|
|
|
return displayName
|
|
|
|
}
|
2018-02-27 05:54:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|