mirror of
https://github.com/nimbold/Firelink.git
synced 2026-08-10 11:37:21 +00:00
fix: remove global user-select none to allow text selection in logs
This commit is contained in:
@@ -110,8 +110,13 @@ export default function LogsView() {
|
||||
|
||||
const handleCopy = async () => {
|
||||
if (contextMenu?.text) {
|
||||
await navigator.clipboard.writeText(contextMenu.text);
|
||||
addToast({ message: 'Copied to clipboard', variant: 'success' });
|
||||
try {
|
||||
await navigator.clipboard.writeText(contextMenu.text);
|
||||
addToast({ message: 'Copied to clipboard', variant: 'success' });
|
||||
} catch (err) {
|
||||
console.error('Clipboard write error:', err);
|
||||
addToast({ message: 'Failed to copy to clipboard', variant: 'error' });
|
||||
}
|
||||
}
|
||||
setContextMenu(null);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user