Files
LANChat/src-tauri
captain 86145b4b74 feat(image-preview): Add image preview support for file messages
- Enable asset protocol in Tauri configuration with CSP policy for secure asset loading
- Add http-range dependency to Cargo.toml for range request support
- Implement image file detection utility to identify supported image formats
- Create image preview rendering for sent and accepted image files with lazy loading
- Add fallback to file icon display when image fails to load or file is not an image
- Extract file icon creation into reusable createFileIcon() helper function
- Add CSS styling for image preview container with hover effects and transparent backgrounds
- Support both desktop (convertFileSrc) and web (/api/download) image loading paths
- Refactor file message layout to accommodate image previews alongside traditional file icons
2026-03-07 17:06:55 +08:00
..
2026-02-18 11:47:24 +08:00