🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.
Refactor GlobePage and GlobeSessions for improved UI interaction and styling
Bill Yangf7feb4fe781d
diff --git a/client/src/app/[site]/globe/components/GlobeSessions.tsx b/client/src/app/[site]/globe/components/GlobeSessions.tsxindex f19e36f6a..317955877 100644--- a/client/src/app/[site]/globe/components/GlobeSessions.tsx+++ b/client/src/app/[site]/globe/components/GlobeSessions.tsx@@ -175,8 +175,8 @@ export function GlobeSessions() {return (<>- <div className="space-y-2 bg-neutral-800/40 p-2 rounded-lg w-[371px] backdrop-blur-sm">- <div className="text-sm text-neutral-300 font-medium flex items-center justify-between">+ <div className="space-y-2 bg-neutral-850/60 p-2 rounded-lg w-[371px] backdrop-blur-sm">+ <div className="text-sm text-neutral-200 font-medium flex items-center justify-between">SESSIONS<Button variant="ghost" size="smIcon" onClick={() => setExpanded(!expanded)}>{expanded ? <ChevronDown className="w-4 h-4" /> : <ChevronUp className="w-4 h-4" />}diff --git a/client/src/app/[site]/globe/page.tsx b/client/src/app/[site]/globe/page.tsxindex 2dd5b60a0..4b050321b 100644--- a/client/src/app/[site]/globe/page.tsx+++ b/client/src/app/[site]/globe/page.tsx@@ -91,12 +91,22 @@ export default function GlobePage() {/></div>)}- <div className="absolute bottom-2 left-4 z-99999 right-4 flex flex-col gap-2">+ <div className="absolute bottom-2 left-4 z-99999 right-4 flex flex-col gap-2 pointer-events-none"><div className="flex items-end gap-2 justify-between">- <MapViewSelector />- {mapView !== "timeline" && <GlobeSessions />}+ <div className="pointer-events-auto">+ <MapViewSelector />+ </div>+ {mapView !== "timeline" && (+ <div className="pointer-events-auto">+ <GlobeSessions />+ </div>+ )}</div>- {mapView === "timeline" && <TimelineScrubber />}+ {mapView === "timeline" && (+ <div className="pointer-events-auto">+ <TimelineScrubber />+ </div>+ )}</div></div></div>