-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added profile picture preview on successful upload #96
Added profile picture preview on successful upload #96
Conversation
@@ -1,8 +1,11 @@ | |||
<div id="profile-picture" class="flex items-center shrink-0 flex-col lg:w-[244px]"> | |||
<div id="profile-picture" | |||
<div id="profile-picture-placeholder" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed id
as it is same as the id
of the div
in line 1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution @sachintom999. Normally, we avoid using Javascript as much as possible. Instead, we use Hyperscript. However, in this case, using Hyperscript instead of Javascript introduces more complexity, in my opinion.
I just wanted to give you an idea of how we do things.
After you modify the PR according to the comments I just left, we can merge it.
Once again, thank you for your work!
hi @dogukanteber , I have made the requested changes and pushed. |
Well done, thanks! |
Background
Demo
Solution
Note :
Remove Button
is hidden when user uploads a new picture, to avoid confusion. He can upload a new image to change the first uploaded image.Cancel
button is a potential solution.Remove Button
which deletes the original picture is retained.Changes
talent/templates/talent/profile_picture.html
Testing after fix