mirror of
				https://github.com/whyour/qinglong.git
				synced 2025-11-04 11:16:07 +08:00 
			
		
		
		
	修复内容区头部样式
This commit is contained in:
		
							parent
							
								
									bce1431d03
								
							
						
					
					
						commit
						d8ae039b92
					
				| 
						 | 
					@ -4,7 +4,7 @@ import browserType from './index';
 | 
				
			||||||
export const useCtx = () => {
 | 
					export const useCtx = () => {
 | 
				
			||||||
  const [width, setWidth] = useState('100%');
 | 
					  const [width, setWidth] = useState('100%');
 | 
				
			||||||
  const [marginLeft, setMarginLeft] = useState(0);
 | 
					  const [marginLeft, setMarginLeft] = useState(0);
 | 
				
			||||||
  const [marginTop, setMarginTop] = useState(-72);
 | 
					  const [marginTop, setMarginTop] = useState(-48);
 | 
				
			||||||
  const [isPhone, setIsPhone] = useState(false);
 | 
					  const [isPhone, setIsPhone] = useState(false);
 | 
				
			||||||
  const { platform } = useMemo(() => browserType(), []);
 | 
					  const { platform } = useMemo(() => browserType(), []);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -18,7 +18,7 @@ export const useCtx = () => {
 | 
				
			||||||
    } else {
 | 
					    } else {
 | 
				
			||||||
      setWidth('100%');
 | 
					      setWidth('100%');
 | 
				
			||||||
      setMarginLeft(0);
 | 
					      setMarginLeft(0);
 | 
				
			||||||
      setMarginTop(-72);
 | 
					      setMarginTop(-48);
 | 
				
			||||||
      setIsPhone(false);
 | 
					      setIsPhone(false);
 | 
				
			||||||
      document.body.setAttribute('data-mode', 'desktop');
 | 
					      document.body.setAttribute('data-mode', 'desktop');
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user