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;
|
margin-left: -5px;
|
||||||
display: flex;
|
display: flex;
|
||||||
height: calc(100% - 3.5rem);
|
height: calc(100% - 3.5rem);
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
#left-menu {
|
#left-menu {
|
||||||
width: 230px;
|
width: 230px;
|
||||||
|
|
|
@ -280,6 +280,17 @@ iframe,
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
text-overflow: ellipsis;
|
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 {
|
.area-actions {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
@ -386,6 +397,7 @@ iframe,
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
height: calc(0.8em + 8px);
|
height: calc(0.8em + 8px);
|
||||||
|
user-select: none;
|
||||||
}
|
}
|
||||||
.cbadge-hover {
|
.cbadge-hover {
|
||||||
color: var(--color);
|
color: var(--color);
|
||||||
|
|
|
@ -1020,10 +1020,12 @@ function userparse(obj, auth, acct_id, tlid, popup) {
|
||||||
var udg = '<a onclick="udg(\'' + toot.id + '\',' +
|
var udg = '<a onclick="udg(\'' + toot.id + '\',' +
|
||||||
acct_id + ');" user="' + toot.acct + '" class="udg">'
|
acct_id + ');" user="' + toot.acct + '" class="udg">'
|
||||||
}
|
}
|
||||||
if(tlid == "dir"){
|
|
||||||
var latest = date(toot.last_status_at, "relative");
|
var latest = date(toot.last_status_at, "relative");
|
||||||
var authhtml = '<div class="cbadge" style="width:100px;">Last: ' + latest +
|
if(toot.last_status_at){
|
||||||
'</div>';
|
var latesthtml = '<div class="cbadge" style="width:100px;">Last: ' + latest +
|
||||||
|
'</div>'
|
||||||
|
}else{
|
||||||
|
var latesthtml = ""
|
||||||
}
|
}
|
||||||
templete = templete +
|
templete = templete +
|
||||||
'<div class="cvo" style="padding-top:5px;" user-id="' + toot.id + '"><div class="area-notice">' +
|
'<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>' +
|
toot.acct + locked + '</span>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'</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 +
|
toot.following_count +
|
||||||
'</div><div class="cbadge" style="width:100px;">Followers:' + toot.followers_count +
|
'</div><div class="cbadge" style="width:100px;">' + lang.lang_status_followers + ':' + toot.followers_count +
|
||||||
'</div>' + authhtml +
|
'</div>' + latesthtml + authhtml +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'</div>';
|
'</div>';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user