Add user-select: all for easier copy when the clipboard is not available

This commit is contained in:
Tom Hubrecht 2022-07-27 00:17:50 +02:00
parent 4e63112182
commit 29bce486d2

View file

@ -35,7 +35,7 @@
navigator.clipboard navigator.clipboard
.writeText(share) .writeText(share)
.then(() => (toastText = '<b>Lien de partage copié dans le presse-papier.</b>')) .then(() => (toastText = '<b>Lien de partage copié dans le presse-papier.</b>'))
.catch(() => (toastText = 'Erreur de copie.')) .catch(() => (toastText = 'Erreur de copie automatique.'))
.finally((isToastOpen = true)); .finally((isToastOpen = true));
}; };
</script> </script>
@ -81,6 +81,7 @@
display: block; display: block;
overflow-wrap: break-word; overflow-wrap: break-word;
cursor: pointer; cursor: pointer;
user-select: all;
} }
.share-toast { .share-toast {