Browse Source

Change img bbcode

Visman 2 years ago
parent
commit
0c89a2e5bc
2 changed files with 2 additions and 1 deletions
  1. 1 1
      app/config/defaultBBCode.php
  2. 1 0
      public/style/ForkBB/style.css

+ 1 - 1
app/config/defaultBBCode.php

@@ -455,7 +455,7 @@ if ($parser->attr('isSign')) {
 } else {
 } else {
     // тег в теле сообщения
     // тег в теле сообщения
     if ($parser->attr('showImg')) {
     if ($parser->attr('showImg')) {
-        return '<span class="postimg f-bbivert"><img src="' . $body . '" alt="' . $attrs['Def'] . '" loading="lazy"></span>';
+        return '<img src="' . $body . '" alt="' . $attrs['Def'] . '" loading="lazy" class="postimg f-bbivert">';
     }
     }
 }
 }
 
 

+ 1 - 0
public/style/ForkBB/style.css

@@ -1647,6 +1647,7 @@ body,
 #fork .f-post-body img {
 #fork .f-post-body img {
   max-width: 100%;
   max-width: 100%;
   height: auto;
   height: auto;
+  vertical-align: middle;
 }
 }
 
 
 #fork .f-post-main {
 #fork .f-post-main {