Skip to content

[BUG] Image viewing logic is not working for edit tab #20

@AmanatAliPanhwer

Description

@AmanatAliPanhwer

🧠 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

  1. Go to an existing post's edit page (e.g., /edit/1).
  2. Click on the post's main image.
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions