mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-22 19:11:33 +03:00
UBERF-5408: fix inline images in comments (#4591)
This commit is contained in:
parent
112fc977c9
commit
be2e435ade
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user