Make tweet profile pics clickable

This commit is contained in:
Zed 2019-06-26 21:55:04 +02:00
parent 547cd635bf
commit a801b01142
2 changed files with 7 additions and 1 deletions

View File

@ -277,6 +277,10 @@ nav {
border-radius: 50%; border-radius: 50%;
} }
.tweet-avatar {
display: contents !important;
}
.retweet, .pinned, .tweet-stats { .retweet, .pinned, .tweet-stats {
align-content: center; align-content: center;
color: hsla(240,1%,73%,.7); color: hsla(240,1%,73%,.7);

View File

@ -15,7 +15,9 @@
#end if #end if
<div class="media-heading"> <div class="media-heading">
<div class="heading-name-row"> <div class="heading-name-row">
${genImg(tweet.profile.getUserpic("_bigger"), "avatar")} <a class="tweet-avatar" href="/${tweet.profile.username}">
${genImg(tweet.profile.getUserpic("_bigger"), "avatar")}
</a>
<div class="fullname-and-username"> <div class="fullname-and-username">
${linkUser(tweet.profile, class="fullname")} ${linkUser(tweet.profile, class="fullname")}
${linkUser(tweet.profile, class="username")} ${linkUser(tweet.profile, class="username")}