make profiles clickable, fix paddings

This commit is contained in:
ghost 2021-12-30 23:02:44 +02:00
parent 7cbe0a2f79
commit 8de37a244f
2 changed files with 15 additions and 7 deletions

View File

@ -39,7 +39,6 @@
padding: 8px;
border-radius: 3px;
background: #e6e6e6;
margin-top: 8px
}
.moduleFeed .item .message .quote {
@ -48,6 +47,7 @@
.moduleFeed .item .message .info {
font-weight: bold;
margin-bottom: 8px
}
.moduleFeed .item .message .info .time {

View File

@ -13,7 +13,9 @@ var ModuleFeed = {
$('<div/>', {
'class': 'info'
}).append(
reTwist.userName
$('<a/>', {
'href': 'follow/' + userName
}).append(reTwist.userName)
).append(
$('<span/>', {
'class': 'time'
@ -31,10 +33,14 @@ var ModuleFeed = {
$('<div/>', {
'class': 'avatar'
}).append(
$('<img/>', {
'src': '/api/image?hash=' + userName,
'alt': '',
})
$('<a/>', {
'href': 'follow/' + userName
}).append(
$('<img/>', {
'src': '/api/image?hash=' + userName,
'alt': '',
})
)
)
).append(
$('<div/>', {
@ -43,7 +49,9 @@ var ModuleFeed = {
$('<div/>', {
'class': 'info'
}).append(
userName
$('<a/>', {
'href': 'follow/' + userName
}).append(userName)
).append(
$('<span/>', {
'class': 'time'