Show retweet info in status
This commit is contained in:
parent
3847954687
commit
59eaff9512
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
<img class="status-profile-img" src="{{.Account.AvatarStatic}}" alt="profile-avatar" />
|
||||
|
@ -62,3 +73,6 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{end}}
|
||||
{{end}}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue