mirror of
				https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
				synced 2025-11-04 08:13:43 +08:00 
			
		
		
		
	Refactor: sidebar drag
This commit is contained in:
		@@ -53,7 +53,7 @@ function useHotKey() {
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function useDragSideBar() {
 | 
			
		||||
  const limit = useCallback((x: number) => Math.min(MAX_SIDEBAR_WIDTH, x));
 | 
			
		||||
  const limit = (x: number) => Math.min(MAX_SIDEBAR_WIDTH, x);
 | 
			
		||||
 | 
			
		||||
  const config = useAppConfig();
 | 
			
		||||
  const startX = useRef(0);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user