From fdf95fbbf0c1f0718252f9ea3d69122746578747 Mon Sep 17 00:00:00 2001 From: Ross Date: Thu, 11 Nov 2021 15:10:58 +0000 Subject: [PATCH] . --- anatomy/static/css/anatomy.css | 2 ++ rapids/templates/rapids/rapid_form.html | 5 +---- static/css/anatomy.css | 2 ++ 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/anatomy/static/css/anatomy.css b/anatomy/static/css/anatomy.css index eddb1abb..d98b3aed 100644 --- a/anatomy/static/css/anatomy.css +++ b/anatomy/static/css/anatomy.css @@ -534,6 +534,8 @@ td.user-answer-score-2.rapid-ans::after { .temp-thumb { float: right; + height: 100px; + width: 100px; } .long-answer pre { diff --git a/rapids/templates/rapids/rapid_form.html b/rapids/templates/rapids/rapid_form.html index bb2e45c7..9b09671a 100755 --- a/rapids/templates/rapids/rapid_form.html +++ b/rapids/templates/rapids/rapid_form.html @@ -471,8 +471,7 @@ if (reader.result.startsWith("data:application/octet-stream;base64")) { const element = $("
").get(0) - element.height = 100; - element.width = 100; + $(el).parent().parent().prepend(element); const imageId = cornerstoneWADOImageLoader.wadouri.fileManager.add( file ); @@ -482,11 +481,9 @@ cornerstone.resize(element) }); - $(el).parent().parent().prepend(element); } else { var image = new Image(); - image.height = 100; image.title = file.name; image.src = reader.result; image.className = "temp-thumb"; diff --git a/static/css/anatomy.css b/static/css/anatomy.css index eddb1abb..d98b3aed 100644 --- a/static/css/anatomy.css +++ b/static/css/anatomy.css @@ -534,6 +534,8 @@ td.user-answer-score-2.rapid-ans::after { .temp-thumb { float: right; + height: 100px; + width: 100px; } .long-answer pre {