linkify avatars on profile comments

This commit is contained in:
Azareal 2020-08-20 15:06:28 +10:00
parent 2211d2ef11
commit c6d18e5c18
4 changed files with 8 additions and 2 deletions

View File

@ -45,7 +45,7 @@
{{/** TODO: Make this a separate template and load it via the theme docks, here for now so we can rapidly prototype the Nox theme **/}} {{/** TODO: Make this a separate template and load it via the theme docks, here for now so we can rapidly prototype the Nox theme **/}}
{{if eq .Header.Theme.Name "nox"}} {{if eq .Header.Theme.Name "nox"}}
<div class="user_box"> <div class="user_box">
<a href="{{.CurrentUser.Link}}"><img alt="Avatar" src="{{.CurrentUser.MicroAvatar}}"></a> <a href="{{.CurrentUser.Link}}"><img alt="Avatar"src="{{.CurrentUser.MicroAvatar}}"></a>
<div class="option_box"> <div class="option_box">
<a href="{{.CurrentUser.Link}}"class="username">{{.CurrentUser.Name}}</a> <a href="{{.CurrentUser.Link}}"class="username">{{.CurrentUser.Name}}</a>
<span class="alerts">{{lang "alerts.no_alerts_short"}}</span> <span class="alerts">{{lang "alerts.no_alerts_short"}}</span>

View File

@ -2,7 +2,7 @@
<div id="post-{{.ID}}"class="rowitem passive deletable_block editable_parent comment {{.ClassName}}"> <div id="post-{{.ID}}"class="rowitem passive deletable_block editable_parent comment {{.ClassName}}">
<div class="topRow"> <div class="topRow">
<div class="userbit"> <div class="userbit">
<img src="{{.MicroAvatar}}"alt="Avatar"title="{{.CreatedByName}}'s Avatar"aria-hidden="true"> <a href="{{.UserLink}}"><img src="{{.MicroAvatar}}"alt="Avatar"title="{{.CreatedByName}}'s Avatar"aria-hidden="true"></a>
<span class="nameAndTitle"> <span class="nameAndTitle">
<a href="{{.UserLink}}"class="real_username username">{{.CreatedByName}}</a> <a href="{{.UserLink}}"class="real_username username">{{.CreatedByName}}</a>
{{if .Tag}}<a class="username hide_on_mobile user_tag"style="float:right;">{{.Tag}}</a>{{end}} {{if .Tag}}<a class="username hide_on_mobile user_tag"style="float:right;">{{.Tag}}</a>{{end}}

View File

@ -5,4 +5,7 @@
padding: 8px; padding: 8px;
margin-left: 16px; margin-left: 16px;
margin-bottom: 12px; margin-bottom: 12px;
}
.userbit > a {
height: 40px;
} }

View File

@ -67,6 +67,9 @@
font-size: 17px; font-size: 17px;
line-height: 16px; line-height: 16px;
} }
.userbit > a {
height: 40px;
}
.userbit img { .userbit img {
width: 40px; width: 40px;
height: 40px; height: 40px;