Refactor video modal sharing options into a unified Share menu

- Replaced the standalone "Copy Magnet" button and "Share" button with a new Share menu.
- Implemented `createVideoShareMenuPanel` to render the new menu with "Copy URL", "Share on Nostr", "Copy Magnet", and "Copy CDN Link" options.
- Updated `VideoModal.js` to manage the share menu state and handle actions.
- Added `video:share-nostr` and `video:copy-cdn` event handlers in `app.js`.
- Removed the `#copyMagnetBtn` element from `video-modal.html`.
- Preserved existing functionality for "Copy URL" and "Copy Magnet".
- "Share on Nostr" is currently a placeholder logging a message, disabled for logged-out users.
- "Copy CDN Link" is disabled if no URL is available.
This commit is contained in:
google-labs-jules[bot] committed 2026-01-22 04:17:29 +00:00
1 parent 4c9ae3b882
commit bd868fb7ea
8 files changed
+140 -24

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 315 KiB