Conversation
Clicking on an image or drawing opens it in the current browser tab.
|
It should be decided whether the requirement applies A) only to photos or B) to photos AND drawings. The proposed change implements case B). Please leave a review note if case A) is preferred. Furthermore, please be aware that this change has an impact on the website AND the slides. |
|
This might fail with the slides which use the same renderer for pictures and images. I can’t test it right now, but this needs to be checked. Especially if you can return to the correct slide when you use your browser’s return button. |
|
with this pr, a photo or picture in a slide is clickable. with a click, the browser tab change to the image. After that, I am able to return with the secondary mouse button, or, with the browser's BUT: When I activate the speakers view with key |
|
Since this is my first time working with Python, I'm not sure what an idiomatic solution would look like. I am somewhat reluctant to duplicate the render_photo_helper and render_picture_helper methods in fifty_ohm_html_slide_renderer.py, as they would then appear four times in the source code. Therefore, I suggest this refactoring so that I can implement the creation of the “empty” link in fifty_ohm_html_slide_renderer. Or am I thinking too much in “Java” and should I duplicate the helper methods after all? In my opinion, there is no rush to approve this PR. I would like to use this as an opportunity to better understand your approach and preferences and adapt accordingly. |
|
@KimCM Thank you for your contribution! A couple of comments:
I will update the README and add a proper contribution guide in the next few days, which should help new contributors find their way around this repository. I also will start documenting the architecture. |
Clicking on an image or drawing opens it in the current browser tab.