mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-27 06:02:00 +08:00
* refactor: update Scrollbar component and integrate horizontal scrolling in TabContainer and KnowledgeBaseInput - Renamed Props interface to ScrollbarProps for clarity. - Implemented useHorizontalScroll hook in TabContainer to manage horizontal scrolling. - Removed deprecated scroll handling logic and replaced it with the new hook. - Enhanced KnowledgeBaseInput to utilize horizontal scrolling for better UI management. - Cleaned up unused imports and components for improved code maintainability. * refactor: update dependencies type in useHorizontalScroll hook to readonly unknown[] for better type safety * feat: add scrollDistance parameter to useHorizontalScroll hook for customizable scrolling behavior * refactor: replace useHorizontalScroll with HorizontalScrollContainer in TabContainer, KnowledgeBaseInput, and MentionModelsInput components - Updated TabContainer to utilize HorizontalScrollContainer for improved scrolling functionality. - Refactored KnowledgeBaseInput and MentionModelsInput to replace the custom horizontal scroll implementation with HorizontalScrollContainer, simplifying the code and enhancing maintainability. * refactor(HorizontalScrollContainer): remove paddingRight prop and update scroll handling - Removed the unused paddingRight prop from HorizontalScrollContainerProps and its implementation. - Updated handleScrollRight to accept the event parameter and stop propagation. - Simplified the Container styled component by eliminating the padding-right style. * fix: sync issue * fix: isLeftNavbar inputbar display issue * feat(HorizontalScrollContainer): add scroll end detection and disable button hover effect --------- Co-authored-by: 自由的世界人 <3196812536@qq.com> |
||
|---|---|---|
| .. | ||
| src | ||
| index.html | ||
| miniWindow.html | ||
| selectionAction.html | ||
| selectionToolbar.html | ||
| traceWindow.html | ||