diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-03-07 08:38:36 +0000 |
|---|---|---|
| committer | David Siegfried <david.siegfried@uni-vechta.de> | 2023-03-07 08:38:36 +0000 |
| commit | 9e1c49e36db2a40809dc9d9f6f18fcad066130f4 (patch) | |
| tree | 37766a4088a5d9879ad980ddedccabcef03fcd23 | |
| parent | aefa4f421cdae2c207b724a7619a665cd082ed95 (diff) | |
forum: fix alignment of handle and icon, fixes #2263
Closes #2263
Merge request studip/studip!1495
| -rw-r--r-- | app/views/course/forum/area/add.php | 2 | ||||
| -rw-r--r-- | 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 310bc9b..eac1545 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 2079975..f46383c 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 { |
