Skip to content
Snippets Groups Projects
Commit 9e1c49e3 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms Committed by David Siegfried
Browse files

forum: fix alignment of handle and icon, fixes #2263

Closes #2263

Merge request studip/studip!1495
parent aefa4f42
No related branches found
No related tags found
No related merge requests found
...@@ -8,13 +8,11 @@ ...@@ -8,13 +8,11 @@
<? if ($entry['chdate'] >= $visitdate && $entry['user_id'] !== $GLOBALS['user']->id): ?> <? if ($entry['chdate'] >= $visitdate && $entry['user_id'] !== $GLOBALS['user']->id): ?>
<?= Icon::create('forum', Icon::ROLE_ATTENTION)->asImg([ <?= Icon::create('forum', Icon::ROLE_ATTENTION)->asImg([
'title' => _('Dieser Eintrag ist neu!'), 'title' => _('Dieser Eintrag ist neu!'),
'style' => 'margin-bottom: 15px',
]) ?> ]) ?>
<? else : ?> <? else : ?>
<? $num_postings = ForumVisit::getCount($entry['topic_id'], $visitdate) ?> <? $num_postings = ForumVisit::getCount($entry['topic_id'], $visitdate) ?>
<?= Icon::create('forum', $num_postings > 0 ? Icon::ROLE_ATTENTION : Icon::ROLE_INFO)->asImg([ <?= Icon::create('forum', $num_postings > 0 ? Icon::ROLE_ATTENTION : Icon::ROLE_INFO)->asImg([
'title' => ForumHelpers::getVisitText($num_postings, $entry['topic_id'], $constraint['depth']), 'title' => ForumHelpers::getVisitText($num_postings, $entry['topic_id'], $constraint['depth']),
'style' => 'margin-bottom: 15px;',
]) ?> ]) ?>
<? endif ?> <? endif ?>
</a> </a>
......
...@@ -150,7 +150,10 @@ html.no-js #forum { ...@@ -150,7 +150,10 @@ html.no-js #forum {
height: 50px; height: 50px;
white-space: nowrap; white-space: nowrap;
text-align: center; text-align: center;
vertical-align: middle;
* {
vertical-align: middle;
}
} }
.icon_thread { .icon_thread {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment