This commit is contained in:
Ross
2021-11-11 15:10:58 +00:00
parent 2dc6836e84
commit fdf95fbbf0
3 changed files with 5 additions and 4 deletions
+2
View File
@@ -534,6 +534,8 @@ td.user-answer-score-2.rapid-ans::after {
.temp-thumb { .temp-thumb {
float: right; float: right;
height: 100px;
width: 100px;
} }
.long-answer pre { .long-answer pre {
+1 -4
View File
@@ -471,8 +471,7 @@
if (reader.result.startsWith("data:application/octet-stream;base64")) { if (reader.result.startsWith("data:application/octet-stream;base64")) {
const element = $("<div class='temp-thumb'></div>").get(0) const element = $("<div class='temp-thumb'></div>").get(0)
element.height = 100; $(el).parent().parent().prepend(element);
element.width = 100;
const imageId = cornerstoneWADOImageLoader.wadouri.fileManager.add( const imageId = cornerstoneWADOImageLoader.wadouri.fileManager.add(
file file
); );
@@ -482,11 +481,9 @@
cornerstone.resize(element) cornerstone.resize(element)
}); });
$(el).parent().parent().prepend(element);
} else { } else {
var image = new Image(); var image = new Image();
image.height = 100;
image.title = file.name; image.title = file.name;
image.src = reader.result; image.src = reader.result;
image.className = "temp-thumb"; image.className = "temp-thumb";
+2
View File
@@ -534,6 +534,8 @@ td.user-answer-score-2.rapid-ans::after {
.temp-thumb { .temp-thumb {
float: right; float: right;
height: 100px;
width: 100px;
} }
.long-answer pre { .long-answer pre {