feat: add image preview with drag-and-drop support

- Add ImagePreview component for displaying embedded image thumbnails
- Enable drag-and-drop functionality for images in FloatingPromptInput
- Configure Tauri asset protocol to properly serve local image files
- Support image mentions via @path syntax in prompts
- Add visual feedback for drag hover states
- Implement full-size image preview dialog with navigation
- Handle duplicate images and limit preview to 10 thumbnails
This commit is contained in:
Mufeed VH
2025-06-22 01:50:29 +05:30
parent 9ab383bbbe
commit 93ce8b656f
5 changed files with 457 additions and 100 deletions

View File

@@ -18,7 +18,11 @@
}
],
"security": {
"csp": null
"csp": "default-src 'self'; img-src 'self' asset: https://asset.localhost blob: data:; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-eval'",
"assetProtocol": {
"enable": true,
"scope": ["**"]
}
}
},
"plugins": {