Workaround for the text alignment of media bbcodes
authorAlexander Ebert <ebert@woltlab.com>
Thu, 25 Jul 2019 10:32:47 +0000 (12:32 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 25 Jul 2019 10:32:47 +0000 (12:32 +0200)
Fixes #2965

com.woltlab.wcf/templates/mediaBBCodeTag.tpl
wcfsetup/install/files/acp/templates/mediaBBCodeTag.tpl

index d198fba1703abc175aeba87436f688d1c80b7a80..f18d734ab3a4add85910c8a450304a9f633d225e 100644 (file)
@@ -1,4 +1,4 @@
-<div class="mediaBBCode{if $float != 'none'} messageFloatObject{$float|ucfirst}{/if}">
+<span class="mediaBBCode{if $float != 'none'} messageFloatObject{$float|ucfirst}{/if}">
        {if $thumbnailSize != 'original'}
                <a href="{$mediaLink}" class="embeddedAttachmentLink jsImageViewer"><img src="{$thumbnailLink}" alt="{$media->altText}" title="{$media->title}" data-width="{@$media->getThumbnailWidth($thumbnailSize)}" data-height="{@$media->getThumbnailHeight($thumbnailSize)}"></a>
        {else}
@@ -6,12 +6,12 @@
        {/if}
        
        {if $media->caption}
-               <div class="mediaBBCodeCaption">
+               <span class="mediaBBCodeCaption">
                        {if $media->captionEnableHtml}
                                {@$media->caption}
                        {else}
                                {$media->caption}
                        {/if}
-               </div>
+               </span>
        {/if}
-</div>
+</span>
index d198fba1703abc175aeba87436f688d1c80b7a80..f18d734ab3a4add85910c8a450304a9f633d225e 100644 (file)
@@ -1,4 +1,4 @@
-<div class="mediaBBCode{if $float != 'none'} messageFloatObject{$float|ucfirst}{/if}">
+<span class="mediaBBCode{if $float != 'none'} messageFloatObject{$float|ucfirst}{/if}">
        {if $thumbnailSize != 'original'}
                <a href="{$mediaLink}" class="embeddedAttachmentLink jsImageViewer"><img src="{$thumbnailLink}" alt="{$media->altText}" title="{$media->title}" data-width="{@$media->getThumbnailWidth($thumbnailSize)}" data-height="{@$media->getThumbnailHeight($thumbnailSize)}"></a>
        {else}
@@ -6,12 +6,12 @@
        {/if}
        
        {if $media->caption}
-               <div class="mediaBBCodeCaption">
+               <span class="mediaBBCodeCaption">
                        {if $media->captionEnableHtml}
                                {@$media->caption}
                        {else}
                                {$media->caption}
                        {/if}
-               </div>
+               </span>
        {/if}
-</div>
+</span>