Files
0a51a6cc43 MUL-7759: copy image from the desktop attachment viewer (#8888)
* fix(desktop): add Copy Image to the right-click menu (MUL-7759)

Electron ships no default context menu, so right-clicking an image in the
attachment viewer (or anywhere in the app) offered nothing. Add a Copy
Image item for loaded <img> targets that copies the decoded bitmap via
webContents.copyImageAt — works for any format and origin without a refetch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* feat(views): copy-image button in the desktop attachment viewer (MUL-7759)

Adds a copyImage clipboard helper (fetch, re-encode non-PNG through a
canvas, write via the async Clipboard API) and a Copy image button next to
Download for image previews. Shown only in the desktop shell: web script
can't read the storage CDN's bytes (no CORS), and browsers already offer
Copy image in their own context menu.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

* fix(views): gentler copy-image failure copy per conventions (MUL-7759)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: multica-agent <github@multica.ai>
2026-09-27 18:58:50 +08:00
..