mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-08 21:27:45 +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'}
|
{:else if node.nodeName === 'HR'}
|
||||||
<hr />
|
<hr />
|
||||||
{:else if node.nodeName === 'IMG'}
|
{: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'}
|
{:else if node.nodeName === 'H1'}
|
||||||
<h1><svelte:self nodes={node.childNodes} /></h1>
|
<h1><svelte:self nodes={node.childNodes} /></h1>
|
||||||
{:else if node.nodeName === 'H2'}
|
{:else if node.nodeName === 'H2'}
|
||||||
@ -160,6 +160,10 @@
|
|||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
.imgContainer {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
|
||||||
.img {
|
.img {
|
||||||
:global(img) {
|
:global(img) {
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
|
Loading…
Reference in New Issue
Block a user