Skip to content

fix(ImageView): use cursor: pointer for clickable items#8813

Open
mejo- wants to merge 1 commit into
mainfrom
fix/attachments_cursor
Open

fix(ImageView): use cursor: pointer for clickable items#8813
mejo- wants to merge 1 commit into
mainfrom
fix/attachments_cursor

Conversation

@mejo-

@mejo- mejo- commented Jul 4, 2026

Copy link
Copy Markdown
Member

Also move the click handler for non-image attachments from the full-width container box to the attachment box with a visible boundary.

🏁 Checklist

  • Code is properly formatted (npm run lint / npm run stylelint / composer run cs:check)
  • Sign-off message is added to all commits

🤖 AI (if applicable)

  • The content of this PR was partly generated using AI tools
  • The AI-generated content was reviewed, comprehended and tested by a human

@mejo- mejo- self-assigned this Jul 4, 2026
@mejo- mejo- added bug Something isn't working 3. to review labels Jul 4, 2026
@github-project-automation github-project-automation Bot moved this to 🧭 Planning evaluation (don't pick) in 📝 Productivity team Jul 4, 2026
@mejo- mejo- moved this from 🧭 Planning evaluation (don't pick) to 👀 In review in 📝 Productivity team Jul 4, 2026
@mejo-

mejo- commented Jul 4, 2026

Copy link
Copy Markdown
Member Author

/backport to stable34

@mejo-

mejo- commented Jul 4, 2026

Copy link
Copy Markdown
Member Author

/backport to stable33

@mejo-

mejo- commented Jul 4, 2026

Copy link
Copy Markdown
Member Author

/backport to stable32

Also move the click handler for non-image attachments from the
full-width container box to the attachment box with a visible boundary.

Signed-off-by: Jonas <jonas@freesources.org>
@mejo- mejo- force-pushed the fix/attachments_cursor branch from 07f3bfe to f8096ec Compare July 4, 2026 20:55
Comment thread src/nodes/ImageView.vue
Comment on lines +27 to +29
<div
class="media__wrapper clickable"
@click="handleAttachmentClick">

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about using an <a> tag instead. That seems semantically closer to what the element is.
The href could even point to the url handleAttachmentClick opens if it does not open the viewer.

Comment thread src/nodes/ImageView.vue
:src="imageUrl"
:alt="alt"
class="image__main"
class="image__main clickable"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe also turn the surounding <div> into an <a> and move the click handler there?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: 👀 In review

Development

Successfully merging this pull request may close these issues.

2 participants