summaryrefslogtreecommitdiff
path: root/app/utils
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2018-10-28 11:26:01 -0600
committerluxagraf <sng@luxagraf.net>2018-10-28 11:26:01 -0600
commit744cd23814b128f09b2be7a5a7551177187a855b (patch)
tree7deb0e3464fb9dd579f48a56ce342dded167bf03 /app/utils
parent99829b82a1a51f39c9a79da3da20861d34566a17 (diff)
added an override for weird max height setting in django admin responsive css
Diffstat (limited to 'app/utils')
-rw-r--r--app/utils/static/image-loader.js4
1 files changed, 3 insertions, 1 deletions
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"
});