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 {
display: flex;
margin: 16px 0;
}
.status-content {
@ -107,3 +110,22 @@
.signin-form input {
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,4 +1,15 @@
<div class="status-container">
<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>
<img class="status-profile-img" src="{{.Account.AvatarStatic}}" alt="profile-avatar" />
</div>
@ -61,4 +72,7 @@
</a>
</div>
</div>
</div>
{{end}}
{{end}}
</div>