diff --git a/SharpbinV3.Client/src/routes/+page.svelte b/SharpbinV3.Client/src/routes/+page.svelte index e6b2440..e7d73f9 100644 --- a/SharpbinV3.Client/src/routes/+page.svelte +++ b/SharpbinV3.Client/src/routes/+page.svelte @@ -65,17 +65,9 @@ let max: number; let element = markdown ? markdownConatiner : textArea; - if (!markdown) { - textArea.style.height = 'auto'; - - h = textArea.scrollHeight; + element.style.height = 'auto'; + h = element.scrollHeight; max = MAX_HEIGHT(); - } else { - markdownConatiner.style.height = 'auto'; - - h = markdownConatiner.scrollHeight; - max = MAX_HEIGHT(); - } if (h > max) { element.style.height = max + 'px';