Prevent images in comments in the sidebar box from becoming too large
authorMarcel Werk <burntime@woltlab.com>
Fri, 24 Jul 2020 14:03:33 +0000 (16:03 +0200)
committerMarcel Werk <burntime@woltlab.com>
Fri, 24 Jul 2020 14:03:33 +0000 (16:03 +0200)
com.woltlab.wcf/templates/boxSidebarCommentList.tpl
wcfsetup/install/files/style/ui/comment.scss

index 203bb8a5545e559d105aa1d65d4e203b1bc1948d..e47a933bf12d42099f2d5ac0ac14e9495b2e2c4b 100644 (file)
@@ -5,8 +5,12 @@
                                <h3><a href="{$boxComment->getLink()}">{$boxComment->title}</a></h3>
                        </div>
                        
-                       <p><small>{@$boxComment->getExcerpt(50)}</small></p>
-                       <p><small>{if $boxComment->userID}{user object=$boxComment->getUserProfile()}{else}{$boxComment->username}{/if} <span class="separatorLeft">{@$boxComment->time|time}</span></small></p>
+                       <div class="sidebarCommentContent">
+                               <small>{@$boxComment->getExcerpt(50)}</small>
+                       </div>
+                       <div>
+                               <small>{if $boxComment->userID}{user object=$boxComment->getUserProfile()}{else}{$boxComment->username}{/if} <span class="separatorLeft">{@$boxComment->time|time}</span></small>
+                       </div>
                </li>
        {/foreach}
 </ul>
index 2430602d2ca4a68ffd29edff58d7c3e2ac521257..712243718cbb5fb37249014afdd0bce7d6be10ec 100644 (file)
 .commentModerationDisabledComment {
        margin: 0 -20px;
 }
+
+/* Prevent images in comments in the sidebar box from becoming too large */
+.sidebarCommentContent {
+       img {
+               max-width: 100%;
+               max-height: 300px;
+       }
+}