Commit c7162ade authored by Jonny Bradley's avatar Jonny Bradley
Browse files

[FIX] preview: Correct the `card` div structure to prevent elements being...

[FIX] preview: Correct the `card` div structure to prevent elements being stretched to the full width of the preview box, and make the height the same size as the textarea
parent ba07ee10
Pipeline #646455734 failed with stages
in 45 minutes and 28 seconds
......@@ -26,6 +26,7 @@ if (typeof initEditPreview === "undefined") {
}
} else {
data = $textarea.val();
$preview.innerHeight($textarea.height());
}
$.getJSON($.service("edit", "tohtml"), {
......
......@@ -4,7 +4,9 @@
{$edit_form}
{/tab}
{tab name="{tr}Preview{/tr}"}
<div id="preview_div_{$textarea_id}" class="textarea-preview card card-body"></div>
<div class="card">
<div id="preview_div_{$textarea_id}" class="textarea-preview card-body"></div>
</div>
{/tab}
{/tabset}
</div>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment