fix: Image placeholders incorrectly sized for uploading retina images

This commit is contained in:
Tom Moor
2024-06-09 14:28:54 -04:00
parent 2e466aefc3
commit f439293a7b

View File

@@ -62,8 +62,7 @@ const uploadPlaceholder = new Plugin({
const img = document.createElement("img");
img.src = URL.createObjectURL(action.add.file);
img.width = action.add.dimensions?.width;
img.height = action.add.dimensions?.height;
img.style.width = `${action.add.dimensions?.width}px`;
element.appendChild(img);