fix: remove global user-select none to allow text selection in logs

This commit is contained in:
NimBold
2026-06-22 21:58:06 +03:30
parent 34f25ff3ea
commit a802c947ec
4 changed files with 18 additions and 4 deletions
+7 -2
View File
@@ -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);
};