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.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
fix: hide sidebar scrollbar when collapsed. Closes #4464.
JoeJoeflyn6b893f668fef
diff --git a/src/app/(main)/SideNav.tsx b/src/app/(main)/SideNav.tsxindex 360c0c1dd..8a94dd8a3 100644--- a/src/app/(main)/SideNav.tsx+++ b/src/app/(main)/SideNav.tsx@@ -14,6 +14,7 @@ import { WebsiteNav } from '@/app/(main)/websites/[websiteId]/WebsiteNav';import { IconLabel } from '@/components/common/IconLabel';import Link from '@/components/common/Link';import { OverlayScrollArea } from '@/components/common/OverlayScrollArea';+import styles from '@/components/common/OverlayScrollArea.module.css';import { useGlobalState, useMessages, useNavigation } from '@/components/hooks';import {Globe,@@ -104,7 +105,10 @@ export function SideNav(props: any) {<PanelButton /></Row></Row>- <OverlayScrollArea style={{ flexGrow: 1, minHeight: 0 }}>+ <OverlayScrollArea+ className={isCollapsed ? styles.collapsed : undefined}+ style={{ flexGrow: 1, minHeight: 0 }}+ >{websiteId ? (<WebsiteNav websiteId={websiteId} isCollapsed={isCollapsed} />) : pathname.includes('/settings') ? (diff --git a/src/components/common/OverlayScrollArea.module.css b/src/components/common/OverlayScrollArea.module.cssindex dcd274748..b78fa2bb9 100644--- a/src/components/common/OverlayScrollArea.module.css+++ b/src/components/common/OverlayScrollArea.module.css@@ -6,6 +6,10 @@--overlay-scrollbar-vertical-margin-right: 2px;}+.collapsed > [data-orientation] {+ display: none;+}+.root > :first-child {padding-right: var(--overlay-scrollbar-viewport-padding-right);}