Add: show note and last-status on acct
This commit is contained in:
parent
b50a55cce7
commit
18ce8cf2f4
|
@ -338,6 +338,7 @@ blockquote:before,
|
|||
margin-left: -5px;
|
||||
display: flex;
|
||||
height: calc(100% - 3.5rem);
|
||||
overflow: hidden;
|
||||
}
|
||||
#left-menu {
|
||||
width: 230px;
|
||||
|
|
|
@ -280,6 +280,17 @@ iframe,
|
|||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.acct-note p{
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
}
|
||||
.area-additional.acct-note p:not(:first-child) {
|
||||
display: none;
|
||||
}
|
||||
.area-additional.acct-note p:first-child:after {
|
||||
content: "...";
|
||||
}
|
||||
|
||||
.area-actions {
|
||||
padding: 0;
|
||||
|
@ -386,6 +397,7 @@ iframe,
|
|||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
height: calc(0.8em + 8px);
|
||||
user-select: none;
|
||||
}
|
||||
.cbadge-hover {
|
||||
color: var(--color);
|
||||
|
|
|
@ -1020,10 +1020,12 @@ function userparse(obj, auth, acct_id, tlid, popup) {
|
|||
var udg = '<a onclick="udg(\'' + toot.id + '\',' +
|
||||
acct_id + ');" user="' + toot.acct + '" class="udg">'
|
||||
}
|
||||
if(tlid == "dir"){
|
||||
var latest = date(toot.last_status_at, "relative");
|
||||
var authhtml = '<div class="cbadge" style="width:100px;">Last: ' + latest +
|
||||
'</div>';
|
||||
if(toot.last_status_at){
|
||||
var latesthtml = '<div class="cbadge" style="width:100px;">Last: ' + latest +
|
||||
'</div>'
|
||||
}else{
|
||||
var latesthtml = ""
|
||||
}
|
||||
templete = templete +
|
||||
'<div class="cvo" style="padding-top:5px;" user-id="' + toot.id + '"><div class="area-notice">' +
|
||||
|
@ -1037,10 +1039,11 @@ function userparse(obj, auth, acct_id, tlid, popup) {
|
|||
toot.acct + locked + '</span>' +
|
||||
'</div>' +
|
||||
'</div>' +
|
||||
'<div style="justify-content:space-around;top:5px" class="area-actions"> <div class="cbadge" style="width:100px;">Follows:' +
|
||||
'<div class="area-additional acct-note">' + toot.note.replace(/<br\s?\/?>.+/g, "...") + '</div>' +
|
||||
'<div style="justify-content:space-around;top:5px" class="area-actions"> <div class="cbadge" style="width:100px;">' + lang.lang_status_follow + ':' +
|
||||
toot.following_count +
|
||||
'</div><div class="cbadge" style="width:100px;">Followers:' + toot.followers_count +
|
||||
'</div>' + authhtml +
|
||||
'</div><div class="cbadge" style="width:100px;">' + lang.lang_status_followers + ':' + toot.followers_count +
|
||||
'</div>' + latesthtml + authhtml +
|
||||
'</div>' +
|
||||
'</div>';
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user