Show retweet info in status

This commit is contained in:
r 2019-12-14 10:57:14 +00:00
parent 3847954687
commit 59eaff9512
2 changed files with 91 additions and 55 deletions

View File

@ -1,6 +1,9 @@
.status-container-container {
margin: 16px 0;
}
.status-container { .status-container {
display: flex; display: flex;
margin: 16px 0;
} }
.status-content { .status-content {
@ -107,3 +110,22 @@
.signin-form input { .signin-form input {
margin: 4px 0; margin: 4px 0;
} }
.retweet-info {
margin: 8px 0 4px 24px;
}
.retweet-info .status-profile-img {
height: 24px;
width: 24px;
margin-bottom: -8px;
object-fit: contain;
}
.retweet-info .status-dname{
margin-left: 4px
}
.retweet-info .icon.dripicons-retweet.retweeted {
vertical-align: sub;
}

View File

@ -1,3 +1,14 @@
<div class="status-container-container">
{{if .Reblog}}
<div class="retweet-info">
<img class="status-profile-img" src="{{.Account.AvatarStatic}}" alt="profile-avatar" />
<span class="status-dname"> {{WithEmojis .Account.DisplayName .Account.Emojis}} </span>
<span class="icon dripicons-retweet retweeted"></span>
repeated
</div>
{{template "status" .Reblog}}
{{else}}
{{block "status" .}}
<div class="status-container"> <div class="status-container">
<div> <div>
<img class="status-profile-img" src="{{.Account.AvatarStatic}}" alt="profile-avatar" /> <img class="status-profile-img" src="{{.Account.AvatarStatic}}" alt="profile-avatar" />
@ -62,3 +73,6 @@
</div> </div>
</div> </div>
</div> </div>
{{end}}
{{end}}
</div>