1 commentaire (1 commentaire)0 réactions (0 réactions)0 assignés (0 assignés)TypeScript87 992 stars (87 992 stars)59 717 forks (59 717 forks)batch import
enhancementhelp wanted
Description
🥰 需求描述
对话列表新增置顶按钮
🧐 解决方案
- 当鼠标停留在对话列表上时,可显示置顶对话的按钮
- 点击置顶按钮后,此对话保持置顶,再次点击可取消置顶
- 当有置顶的对话后,置顶其它对话会覆盖上一个对话,保持在列表最顶部;
📝 补充信息

- Type d'issue
- feature
- Direction de recherche
- Start by examining the chat list component in the codebase to understand its rendering logic. Implement a hover state to show a pin button. Use a state management solution (e.g., React context or local state) to track pinned conversations. Ensure the pin behavior matches the described requirements: only one pinned conversation at a time, and it stays at the top.