Merge pull request #9873 from romnzs/highlight-original-poster-in-forum-topic

Highlight original poster in forum topic
pull/9913/head
Thibault Duplessis 2021-10-02 09:06:46 +02:00 committed by GitHub
commit 07b5e7c840
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1 deletions

View File

@ -44,7 +44,10 @@ object post {
st.article(cls := List("forum-post" -> true, "erased" -> post.erased), id := post.number)(
div(cls := "forum-post__metas")(
(!post.erased || canModCateg) option div(
authorLink(post = post, cssClass = "author".some),
authorLink(
post = post,
cssClass = s"author${if (topic.userId == post.userId) " author__op" else ""}".some
),
a(href := url)(
post.updatedAt
.map { updatedAt =>

View File

@ -17,6 +17,13 @@
margin-right: 1rem;
}
a.author__op {
padding: 0.2em;
padding-right: 1em;
border-radius: 0.3em;
background: mix($c-primary, $c-bg-box, 12%);
}
.anchor {
@extend %break-nope;