Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

clip the canvas wrapper to suppress first-paint overflow

Yan54e038f42323
diff --git a/src/components/charts/Chart.tsx b/src/components/charts/Chart.tsx
index ec8392509..770792d24 100644
--- a/src/components/charts/Chart.tsx
+++ b/src/components/charts/Chart.tsx
@@ -133,7 +133,7 @@ export function Chart({
wrapper sizes purely from its parent (width: 100%, height: 100%)
and Chart.js' ResizeObserver picks up viewport changes.
*/}
- <div style={{ position: 'relative', width: '100%', height: '100%' }}>
+ <div style={{ position: 'relative', width: '100%', height: '100%', overflow: 'hidden' }}>
<canvas ref={canvas} style={{ position: 'absolute', top: 0, left: 0 }} />
</div>
</Box>