Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

fix graph for brave, chromium (#6320)

andreas-ementio75fa1c1ccede
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3853bf2d56..9656a3c44e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -39,6 +39,7 @@ All notable changes to this project will be documented in this file.
- Fixed top bar not scrolling horizontally on mobile
- Fixed incline/decline percentages not showing in top stats in comparison mode
- Fixed issue with timestamps being rendered incorrectly in segment menus and modals for some timezones
+- Fixed main graph being clipped when the browser's root font size is smaller than the default 16px
## v3.2.0 - 2026-01-16
diff --git a/assets/js/dashboard/stats/graph/main-graph.tsx b/assets/js/dashboard/stats/graph/main-graph.tsx
index d34b4dc468..4c48f1c23b 100644
--- a/assets/js/dashboard/stats/graph/main-graph.tsx
+++ b/assets/js/dashboard/stats/graph/main-graph.tsx
@@ -547,7 +547,11 @@ export const MainGraphContainer = React.forwardRef<
{ children: ReactNode }
>((props, ref) => {
return (
- <div className="relative mt-4 mb-3 h-92 w-full" ref={ref}>
+ <div
+ className="relative mt-4 mb-3 w-full"
+ style={{ height: `${height}px` }}
+ ref={ref}
+ >
{props.children}
</div>
)