Skip to content

Commit

Permalink
Ul items misplaced for thumbnail attachments
Browse files Browse the repository at this point in the history
As far as I can test, this should be the final solution for this problem.
  • Loading branch information
Pinkeltje authored Sep 13, 2024
1 parent 3d01720 commit 4a27948
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions src/site/template/aurelia/layouts/message/item/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,11 +124,11 @@

<?php if (!empty($attachments)) :
if (!$this->me->exists() && ($this->config->showImgForGuest || $this->config->showFileForGuest ) || $this->me->exists()) : ?>
<?php if ($attachs->inline != count($attachments) && $attachs->totalPrivate != count($attachments) || $this->me->isModerator($this->topic->getCategory()) && $attachs->totalPrivate == count($attachments)) : ?>
<div class="card pb-3 pd-3 mb-3">
<div class="card pb-3 pd-3 mb-3">
<?php if ($attachs->inline != count($attachments) && $attachs->totalPrivate != count($attachments) || $this->me->isModerator($this->topic->getCategory()) && $attachs->totalPrivate == count($attachments)) : ?>
<div class="card-header"><?php echo Text::_('COM_KUNENA_ATTACHMENTS'); ?></div>
<div class="card-body kattach">
<?php endif; ?>
<div class="card-body kattach">
<?php endif; ?>
<ul class="thumbnails" style="list-style:none;">
<?php foreach ($attachments as $attachment) :

Expand Down Expand Up @@ -166,11 +166,11 @@
</div>
</li>
<?php endif;

endforeach; ?>
</ul>
</ul></div>
<?php if ($attachs->inline != count($attachments) && $attachs->totalPrivate != count($attachments) || $this->me->isModerator($this->topic->getCategory()) && $attachs->totalPrivate == count($attachments)) : ?>
</div>

</div>
<div class="clearfix"></div>
<?php endif; ?>
Expand Down Expand Up @@ -229,3 +229,4 @@
?>
</div>
<?php endif;

0 comments on commit 4a27948

Please sign in to comment.