clicking avatar takes you to your profile

This commit is contained in:
Nolan Lawson 2018-04-02 17:53:04 -07:00
parent 7988222086
commit 3458c353e4
1 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,7 @@
<Avatar account="{{verifyCredentials}}" className="compose-box-avatar" size="small"/> <a href="/accounts/{{verifyCredentials.id}}"
class="compose-box-avatar">
<Avatar account="{{verifyCredentials}}" size="small"/>
</a>
<a class="compose-box-display-name" href="/accounts/{{verifyCredentials.id}}"> <a class="compose-box-display-name" href="/accounts/{{verifyCredentials.id}}">
{{verifyCredentials.display_name || verifyCredentials.acct}} {{verifyCredentials.display_name || verifyCredentials.acct}}
</a> </a>
@ -6,7 +9,7 @@
{{'@' + verifyCredentials.acct}} {{'@' + verifyCredentials.acct}}
</span> </span>
<style> <style>
:global(.compose-box-avatar) { .compose-box-avatar {
grid-area: avatar; grid-area: avatar;
margin-right: 15px; margin-right: 15px;
} }
@ -38,7 +41,7 @@
} }
@media (max-width: 767px) { @media (max-width: 767px) {
:global(.compose-box-avatar) { .compose-box-avatar {
grid-area: avatar; grid-area: avatar;
margin-right: 5px; margin-right: 5px;
} }