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
Fixed profile button.
Mike Cao63bfad4d9c4e
diff --git a/package.json b/package.jsonindex f5c1dc129..e159844a2 100644--- a/package.json+++ b/package.json@@ -99,7 +99,7 @@"npm-run-all": "^4.1.5","prisma": "5.7.0","react": "^18.2.0",- "react-basics": "^0.116.0",+ "react-basics": "^0.117.0","react-beautiful-dnd": "^13.1.0","react-dom": "^18.2.0","react-error-boundary": "^4.0.4",diff --git a/src/components/input/ProfileButton.module.css b/src/components/input/ProfileButton.module.cssindex e78433448..e3557b186 100644--- a/src/components/input/ProfileButton.module.css+++ b/src/components/input/ProfileButton.module.css@@ -1,6 +1,9 @@.menu {width: 200px;z-index: var(--z-index-popup);+ border: 1px solid var(--border-color);+ border-radius: var(--border-radius);+ overflow: hidden;}.item {diff --git a/src/components/input/ProfileButton.tsx b/src/components/input/ProfileButton.tsxindex 2c3f86294..5c1d33f3a 100644--- a/src/components/input/ProfileButton.tsx+++ b/src/components/input/ProfileButton.tsx@@ -34,7 +34,7 @@ export function ProfileButton() {</Icon></Button><Popup position="bottom" alignment={dir === 'rtl' ? 'start' : 'end'}>- <Menu variant="popup" onSelect={handleSelect} className={styles.menu}>+ <Menu onSelect={handleSelect} className={styles.menu}><Item key="user" className={styles.item}><Text>{user.username}</Text></Item>diff --git a/yarn.lock b/yarn.lockindex aef653fac..9e788ec28 100644--- a/yarn.lock+++ b/yarn.lock@@ -7570,10 +7570,10 @@ rc@^1.2.7:minimist "^1.2.0"strip-json-comments "~2.0.1"-react-basics@^0.116.0:- version "0.116.0"- resolved "https://registry.yarnpkg.com/react-basics/-/react-basics-0.116.0.tgz#497aa40ceec6c6e849a64be738853f9f04502f8f"- integrity sha512-Vv9CFbrlJPClQ22EvLIdWDmxzY1yRlEd9D4RLYQejl1CsDwvTCjP0Y3zkOmHiFVP9I2VcwUf9uhDf5GASh17dw==+react-basics@^0.117.0:+ version "0.117.0"+ resolved "https://registry.yarnpkg.com/react-basics/-/react-basics-0.117.0.tgz#f75c78acac678f6c4c8e1fdcc7e2a9f415148f1d"+ integrity sha512-coGwL84LhNrw9kAN2REvR9i6bVs55ZnnQxlDsnH6hnj75Sp36rigGNClSwVN1XTlUWp6k+Gc4rn78cc1E/qn2g==dependencies:"@react-spring/web" "^9.7.3"classnames "^2.3.1"