From 744cd23814b128f09b2be7a5a7551177187a855b Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sun, 28 Oct 2018 11:26:01 -0600 Subject: added an override for weird max height setting in django admin responsive css --- app/utils/static/image-loader.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app/utils') diff --git a/app/utils/static/image-loader.js b/app/utils/static/image-loader.js index 3333409..c23cb80 100644 --- a/app/utils/static/image-loader.js +++ b/app/utils/static/image-loader.js @@ -41,5 +41,7 @@ function add_images(){ } document.addEventListener("DOMContentLoaded", function(event) { add_images(); - document.getElementById("id_markdown").style.maxHeight = "300rem" + md = document.textarea["body_markdown"] + md.style.maxHeight = "300rem" + md.style.maxWidth = "300rem" }); -- cgit v1.2.3-70-g09d2