🧠 Description
The image viewing functionality, which allows for a full-screen view of the post's main image, is not working on the /edit page. While it works correctly on the main post view, clicking the image on the edit page does not trigger the viewer.
🧩 Steps to Reproduce
- Go to an existing post's edit page (e.g.,
/edit/1).
- Click on the post's main image.
- The image does not open in a full-screen viewer.
⚙️ Expected Behaviour
Clicking the image on the edit page should open it in the same full-screen image viewer that is used on the main post page.
📸 Screenshots or Logs
N/A
🧾 Environment
- OS: Any
- Browser: Any
- Python version: 3.13
- Flask version: 3.0.3
🧰 Additional Context
The JavaScript logic for the image viewer might not be correctly wired up on the edit.html template.
🧠 Description
The image viewing functionality, which allows for a full-screen view of the post's main image, is not working on the
/editpage. While it works correctly on the main post view, clicking the image on the edit page does not trigger the viewer.🧩 Steps to Reproduce
/edit/1).⚙️ Expected Behaviour
Clicking the image on the edit page should open it in the same full-screen image viewer that is used on the main post page.
📸 Screenshots or Logs
N/A
🧾 Environment
🧰 Additional Context
The JavaScript logic for the image viewer might not be correctly wired up on the
edit.htmltemplate.