Record Images Click to enlarge#2673
Conversation
Adds a modal so when the record image is clicked it shows a larger thumbnail. If the image does not exist it functions as before. If it does exist it opens a larger version with a button to replace the image which opens the previous upload modal
|
I checked out the theme and forgot to check out the storage plugin. Maybe we add a small check? |
|
@micahmills Nice! Is the thought here that the original image could be too large to display, so having the 1200px thumbnail is useful? |
|
Yes the original could potentially be a huge file size and take forever to load. Creating a large thumbnail is a trivial file size to upload and saves a ton of bandwidth. |
This should be fixed now. I am not sure why the PHPCS is failing it isn't related to any of the code I changed that I can see. any ideas @corsacca? |
|
Thanks @micahmills! |
|
@micahmills can we revert the whitespace changes on fd5e6b2 ? |
|
@corsacca I honestly have no idea what is happening here or why all those white space things changed when I changed 3 lines of code, and now I have nerve conflicts with details-bar.php. Unfortunately, I don't have time right now to figure this out. |
|
Thanks @micahmills! |
|
@corsacca I think the PHPCS errors are fixed but now a unit tests is failing for some reason |
|
👍 those unit test look unrelated to this PR. I'll try to vanquish those. Oh the day when i can tell AI to go do it :p. |
|
@micahmills, twas just a small tweak. |
Adds a modal so when the record image is clicked it shows a larger thumbnail. If the image does not exist it functions as before. If it does exist it opens a larger version with a button to replace the image which opens the previous upload modal
This is related to DiscipleTools/disciple-tools-storage#34