lobe-chat
lobe-chat copied to clipboard
💄 style: Optimized file upload buttons and prompts
💻 变更类型 | Change Type
- [ ] ✨ feat
- [ ] 🐛 fix
- [ ] ♻️ refactor
- [x] 💄 style
- [ ] 🔨 chore
- [ ] ⚡️ perf
- [ ] 📝 docs
🔀 变更说明 | Description of Change
-
在
src\locales\default\chat.ts
文件里增加actionFiletip
、dragFileDesc
、dragFileTitle
三个变量,使得src\app\chat\(desktop)\features\ChatInput\Footer\DragUpload.tsx
可以根据enabledFiles
的值进行对于上传文件的提醒说明。 -
src\features\ChatInput\ActionBar\FileUpload.tsx
增加FileUp
作为上传文件的svg
-
适配
actionFiletip
、dragFileDesc
、dragFileTitle
三个变量多语言
📝 补充信息 | Additional Information
已自测通过!
https://github.com/lobehub/lobe-chat/assets/132346501/d557830f-1819-4d3f-8f9d-9cfdccd4846e