Add user-select: all for easier copy when the clipboard is not available
This commit is contained in:
parent
4e63112182
commit
29bce486d2
1 changed files with 2 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue