diff --git a/assets/less/classes/forum/post.less b/assets/less/classes/forum/post.less index 3613e916..b6308947 100644 --- a/assets/less/classes/forum/post.less +++ b/assets/less/classes/forum/post.less @@ -75,7 +75,6 @@ &__content { width: 150px; - word-break: break-all; text-align: center; display: flex; flex-direction: column; @@ -84,11 +83,6 @@ flex: 0 0 auto; margin-right: 4px; - &--tolerate-wide { - width: auto; - min-width: 150px; - } - @media (max-width: @site-mobile-width) { width: 100%; flex-direction: row; @@ -138,12 +132,9 @@ &__joined { flex: 1 1 auto; - margin: 2px; max-width: 170px; font-size: .9em; justify-self: flex-end; - margin-top: 10px; - margin-bottom: -10px; @media (max-width: @site-mobile-width) { display: none; @@ -164,9 +155,8 @@ &__username { color: inherit; font-size: 1.4em; - line-height: 1.5em; + line-height: 2em; text-decoration: none; - margin: 2px 0 1px; &[href]:hover { text-decoration: underline; @@ -179,6 +169,16 @@ } } + &__usertitle { + font-size: .9em; + line-height: 1.5em; + margin-bottom: 4px; + + @media (max-width: @site-mobile-width) { + display: none; + } + } + &__options { margin: 2px; display: flex; diff --git a/src/Forum/post.php b/src/Forum/post.php index 7cf9409d..f860592c 100644 --- a/src/Forum/post.php +++ b/src/Forum/post.php @@ -133,6 +133,7 @@ function forum_post_listing(int $topicId, int $offset = 0, int $take = 0, bool $ u.`user_created` AS `poster_joined`, u.`user_country` AS `poster_country`, COALESCE(u.`user_colour`, r.`role_colour`) AS `poster_colour`, + COALESCE(u.`user_title`, r.`role_title`) AS `poster_title`, ( SELECT COUNT(`post_id`) FROM `msz_forum_posts` diff --git a/templates/forum/macros.twig b/templates/forum/macros.twig index 739147e1..14209348 100644 --- a/templates/forum/macros.twig +++ b/templates/forum/macros.twig @@ -385,7 +385,7 @@