1
0
mirror of https://github.com/nolanlawson/pinafore synced 2025-02-03 07:15:47 +01:00

43 lines
815 B
HTML
Raw Normal View History

<a class="status-sidebar size-{{size}}"
href="/accounts/{{originalAccountId}}"
2018-03-22 00:22:18 -07:00
focus-key="{{focusKey}}"
aria-hidden="true"
>
<Avatar account={{originalAccount}}
isLink="true"
:size />
</a>
2018-02-04 10:50:39 -08:00
<style>
.status-sidebar {
2018-02-09 20:07:48 -08:00
grid-area: sidebar;
2018-02-22 09:30:37 -08:00
margin-right: 15px;
}
.status-sidebar.size-small {
width: 48px;
height: 48px;
}
.status-sidebar.size-medium {
width: 64px;
height: 64px;
}
2018-02-22 09:30:37 -08:00
@media (max-width: 767px) {
.status-sidebar {
2018-02-22 09:30:37 -08:00
margin-right: 5px;
}
2018-02-04 10:50:39 -08:00
}
</style>
<script>
2018-02-08 17:56:20 -08:00
import Avatar from '../Avatar.html'
2018-02-04 10:50:39 -08:00
export default {
components: {
Avatar
},
computed: {
focusKey: (uuid) => `status-author-avatar-${uuid}`,
size: (isStatusInOwnThread) => isStatusInOwnThread ? 'medium' : 'small'
2018-02-04 10:50:39 -08:00
}
}
</script>