jsr-io / jsr

The open-source package registry for modern JavaScript and TypeScript
https://jsr.io
MIT License
2.52k stars 117 forks source link

fix: Copy button overlaps with content #791

Open third opened 3 weeks ago

third commented 3 weeks ago

Proposed fix for #782

Screenshot 2024-10-27 at 9 27 39 PM

CLAassistant commented 3 weeks ago

CLA assistant check
All committers have signed the CLA.

third commented 3 weeks ago

790 is also covered by this fix.

crowlKats commented 3 weeks ago

@third this is not working on firefox for me; works on chrome though.

third commented 2 weeks ago

@third this is not working on firefox for me; works on chrome though.

@crowlKats I updated the code to fix Firefox issue. Let me know how it works on your end.

crowlKats commented 2 weeks ago

seems the import statement is collapsed now:

Screenshot 2024-11-06 at 00 01 11
third commented 2 weeks ago

@crowlKats Good eye. Here's my latest fix and screenshots. Tested in Chrome, Firefox and Safari.

Screenshot 2024-11-05 at 8 17 16 PM

Hovered version Screenshot 2024-11-05 at 8 17 58 PM

lucacasonato commented 2 weeks ago

When you triple click on any of the words in the import statement, only that word is now selected. Previously the entire statement was selected.