From 9e1c49e36db2a40809dc9d9f6f18fcad066130f4 Mon Sep 17 00:00:00 2001
From: Jan-Hendrik Willms <tleilax+studip@gmail.com>
Date: Tue, 7 Mar 2023 08:38:36 +0000
Subject: [PATCH] forum: fix alignment of handle and icon, fixes #2263

Closes #2263

Merge request studip/studip!1495
---
 app/views/course/forum/area/add.php          | 2 --
 resources/assets/stylesheets/scss/forum.scss | 5 ++++-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/app/views/course/forum/area/add.php b/app/views/course/forum/area/add.php
index 310bc9b7261..eac15459a4a 100644
--- a/app/views/course/forum/area/add.php
+++ b/app/views/course/forum/area/add.php
@@ -8,13 +8,11 @@
         <? if ($entry['chdate'] >= $visitdate && $entry['user_id'] !== $GLOBALS['user']->id): ?>
             <?= Icon::create('forum', Icon::ROLE_ATTENTION)->asImg([
                 'title' => _('Dieser Eintrag ist neu!'),
-                'style' => 'margin-bottom: 15px',
             ]) ?>
         <? else : ?>
             <? $num_postings = ForumVisit::getCount($entry['topic_id'], $visitdate) ?>
             <?= Icon::create('forum', $num_postings > 0 ? Icon::ROLE_ATTENTION : Icon::ROLE_INFO)->asImg([
                 'title' => ForumHelpers::getVisitText($num_postings, $entry['topic_id'], $constraint['depth']),
-                'style' => 'margin-bottom: 15px;',
             ]) ?>
         <? endif ?>
         </a>
diff --git a/resources/assets/stylesheets/scss/forum.scss b/resources/assets/stylesheets/scss/forum.scss
index 2079975ef81..f46383c7ee1 100644
--- a/resources/assets/stylesheets/scss/forum.scss
+++ b/resources/assets/stylesheets/scss/forum.scss
@@ -150,7 +150,10 @@ html.no-js #forum {
         height: 50px;
         white-space: nowrap;
         text-align: center;
-        vertical-align: middle;
+
+        * {
+            vertical-align: middle;
+        }
     }
 
     .icon_thread {
-- 
GitLab