fix: disable mobile drag, replace window.location.reload with router.refresh, use semantic icons
- Disable Muuri drag on mobile devices to prevent scroll conflicts - Replace all remaining window.location.reload() with router.refresh() in settings/data, settings/general, and note-editor - Replace duplicate X icons with semantic icons (Trash2 for fused badge, LogOut for leave share) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -528,9 +528,8 @@ export function NoteEditor({ note, readOnly = false, onClose }: NoteEditorProps)
|
||||
size: size,
|
||||
})
|
||||
toast.success(t('notes.copySuccess'))
|
||||
triggerRefresh()
|
||||
onClose()
|
||||
// Force refresh to show the new note
|
||||
window.location.reload()
|
||||
} catch (error) {
|
||||
console.error('Failed to copy note:', error)
|
||||
toast.error(t('notes.copyFailed'))
|
||||
|
||||
Reference in New Issue
Block a user