@@ -190,6 +194,16 @@
fileInput.value = "";
return;
}
+
+ document
+ .getElementById("resize_photo_dialouge")
+ .classList.remove("hidden");
+
+ document.getElementById("new_profile_image").src =
+ URL.createObjectURL(file);
+
+ return;
+
const formData = new FormData();
formData.append("photo", file);
formData.append(
diff --git a/static/profile_page.css b/static/profile_page.css
index 315b2b0..d182caa 100644
--- a/static/profile_page.css
+++ b/static/profile_page.css
@@ -116,6 +116,10 @@
position: fixed;
}
+#resize_photo_dialouge {
+ z-index: 10000;
+}
+
#change_password_dialogue input {
width: 350px;
}