feat(ui): add download image button to duel view - #117
Conversation
c1aafef to
915592d
Compare
KrishnaX12
left a comment
There was a problem hiding this comment.
Hey @Younesfdj, I've added the Download button for the Duel view. Could you please take a look when you have a moment? Thanks!
sheikhwasimuddin
left a comment
There was a problem hiding this comment.
Potential browser compatibility issue: ClipboardItem and navigator.clipboard.write() may not be supported in all browsers. Could we add a capability check and provide a fallback (such as downloading the image or copying the duel link) when image clipboard support isn't available? This would prevent the "Copy image" action from failing silently.
|
@sheikhwasimuddin 2026-08-18.00-37-19.mp4 |
Co-authored-by: GokulPandi-M <187867218+GokulPandi-M@users.noreply.github.com>
5bd8c2b to
c4f9e4f
Compare
sheikhwasimuddin
left a comment
There was a problem hiding this comment.
Re-checked the latest changes. The clipboard capability check and download fallback address the compatibility concern I raised earlier. The implementation looks good from my side. ✅
Approved.
|
Thank you @sheikhwasimuddin for the approval! 🚀 |
DESCRPTION !!
What does this PR do?
Adds a "Download" button to the Rivalry (Duel) view so users can save and share their 1v1 matchups as high-quality posters.
Implementation details
html-to-imagevia the existingrenderCardImageutility to capture the Duel view.minHeightand adds symmetric padding during capture to export a pristine, tightly-cropped poster.flex-collayout, preventing awkward text wrapping and matching the premium feel of the rest of the app.2026-08-16.19-57-42.1.mp4