UBERF-5408: fix inline images in comments (#4591)

This commit is contained in:
Kristina 2024-02-09 17:35:08 +04:00 committed by GitHub
parent 112fc977c9
commit be2e435ade
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -86,7 +86,7 @@
{:else if node.nodeName === 'HR'}
<hr />
{:else if node.nodeName === 'IMG'}
<div class="max-h-60 max-w-60">{@html node.outerHTML}</div>
<div class="imgContainer max-h-60 max-w-60">{@html node.outerHTML}</div>
{:else if node.nodeName === 'H1'}
<h1><svelte:self nodes={node.childNodes} /></h1>
{:else if node.nodeName === 'H2'}
@ -160,6 +160,10 @@
{/if}
<style lang="scss">
.imgContainer {
display: inline;
}
.img {
:global(img) {
object-fit: contain;