Tweak: again trying to restore chart sizing in 0.10.x (#4479)

This commit is contained in:
shamoon
2024-12-23 13:37:48 -08:00
committed by GitHub
parent 2d91b2b748
commit 94936ed09d
7 changed files with 25 additions and 11 deletions

View File

@@ -18,9 +18,9 @@ export default function Container({ children, widget, error = null, chart = true
}
return (
<div className={classNames("service-container", chart ? "chart relative h-[120px]" : "")}>
<div className={classNames("service-container", chart ? "chart relative h-[68px]" : "")}>
{children}
<div className={`absolute top-0 right-0 bottom-0 left-0 overflow-clip pointer-events-none ${className}`} />
<div className={`absolute -top-10 right-0 bottom-0 left-0 overflow-clip pointer-events-none ${className}`} />
{chart && <div className="h-[68px] overflow-clip" />}
{!chart && <div className="h-[16px] overflow-clip" />}
</div>