2018-02-10 06:55:11 +00:00
|
|
|
<a class="status-author-name {{isStatusInNotification ? 'status-in-notification' : '' }} {{isStatusInOwnThread ? 'status-in-own-thread' : ''}}"
|
2018-03-16 03:04:24 +00:00
|
|
|
href="/accounts/{{originalAccountId}}"
|
2018-03-20 01:05:51 +00:00
|
|
|
title="{{'@' + originalAccount.acct}}"
|
2018-02-10 21:57:04 +00:00
|
|
|
focus-key="{{focusKey}}"
|
|
|
|
>
|
2018-03-16 03:04:24 +00:00
|
|
|
{{originalAccount.display_name || originalAccount.username}}
|
2018-02-10 06:55:11 +00:00
|
|
|
</a>
|
|
|
|
<style>
|
|
|
|
.status-author-name {
|
|
|
|
grid-area: author-name;
|
|
|
|
align-self: center;
|
|
|
|
margin-left: 5px;
|
|
|
|
font-size: 1.1em;
|
|
|
|
min-width: 0;
|
|
|
|
font-weight: 600;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
|
|
|
.status-author-name.status-in-own-thread {
|
|
|
|
font-size: 1.3em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.status-author-name, .status-author-name:hover, .status-author-name:visited {
|
|
|
|
color: var(--body-text-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
.status-author-name.status-in-notification,
|
|
|
|
.status-author-name.status-in-notification:hover,
|
|
|
|
.status-author-name.status-in-notification:visited {
|
|
|
|
color: var(--very-deemphasized-text-color);
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
computed: {
|
2018-03-16 03:04:24 +00:00
|
|
|
focusKey: (uuid) => `status-author-name-${uuid}`
|
2018-02-10 06:55:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|