mirror of
				https://github.com/karl0ss/homepage.git
				synced 2025-11-04 08:20:58 +00:00 
			
		
		
		
	Fix: chart stacking with multiple widgets
This commit is contained in:
		
							parent
							
								
									59ed5ed114
								
							
						
					
					
						commit
						7bcdba16c6
					
				@ -1,4 +1,5 @@
 | 
			
		||||
import { useContext } from "react";
 | 
			
		||||
import classNames from "classnames";
 | 
			
		||||
 | 
			
		||||
import Error from "./error";
 | 
			
		||||
 | 
			
		||||
@ -17,10 +18,10 @@ export default function Container({ children, widget, error = null, chart = true
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  return (
 | 
			
		||||
    <div>
 | 
			
		||||
    <div className={classNames("service-container relative", chart ? "h-[120px]" : "")}>
 | 
			
		||||
      {children}
 | 
			
		||||
      <div className={`absolute top-0 right-0 bottom-0 left-0 overflow-clip pointer-events-none ${className}`} />
 | 
			
		||||
      {chart && <div className="h-[68px] overflow-clip" />}
 | 
			
		||||
      {chart && <div className="chart h-[68px] overflow-clip" />}
 | 
			
		||||
      {!chart && <div className="h-[16px] overflow-clip" />}
 | 
			
		||||
    </div>
 | 
			
		||||
  );
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user