force header width to be equal to container width
This commit is contained in:
		
							
								
								
									
										9
									
								
								assets/js/width-hack.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								assets/js/width-hack.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,9 @@ | ||||
| const resizeHeader = () => { | ||||
|     const container = document.querySelector("main > .container") | ||||
|     const containerWidth = container.scrollWidth | ||||
|     const header = document.querySelector(".container.title-container") | ||||
|     header.style.setProperty("min-width", `${containerWidth}px`) | ||||
| } | ||||
|  | ||||
| window.addEventListener("resize", resizeHeader) | ||||
| resizeHeader() | ||||
		Reference in New Issue
	
	Block a user
	 Tyler
					Tyler