Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

Update SiteSelector and AppSidebar styles for improved visual consistency

Bill Yangb06538b81564
diff --git a/client/src/app/[site]/components/Sidebar/SiteSelector.tsx b/client/src/app/[site]/components/Sidebar/SiteSelector.tsx
index bbbc316e6..60cefabb5 100644
--- a/client/src/app/[site]/components/Sidebar/SiteSelector.tsx
+++ b/client/src/app/[site]/components/Sidebar/SiteSelector.tsx
@@ -62,8 +62,8 @@ function SiteSelectorContent({ onSiteSelect }: { onSiteSelect: () => void }) {
onSiteSelect(); // Close popover immediately
}}
className={cn(
- "flex items-center justify-between p-2 cursor-pointer hover:bg-neutral-150 dark:hover:bg-neutral-800/50 transition-colors rounded-md border-b border-neutral-300 dark:border-neutral-800 last:border-b-0",
- isSelected && "bg-neutral-200 dark:bg-neutral-800"
+ "flex items-center justify-between p-2 cursor-pointer hover:bg-neutral-100 dark:hover:bg-neutral-800/50 transition-colors rounded-md border-b border-neutral-300 dark:border-neutral-800 last:border-b-0",
+ isSelected && "bg-neutral-50 dark:bg-neutral-800"
)}
>
<div className="flex items-center gap-3 flex-1 min-w-0">
@@ -106,8 +106,8 @@ function SiteSelectorContent({ onSiteSelect }: { onSiteSelect: () => void }) {
onSiteSelect(); // Close popover immediately
}}
className={cn(
- "flex items-center justify-between p-2 cursor-pointer hover:bg-neutral-150 dark:hover:bg-neutral-800/50 transition-colors rounded-md border-b border-neutral-100 dark:border-neutral-800 last:border-b-0",
- isSelected && "bg-neutral-100 dark:bg-neutral-800"
+ "flex items-center justify-between p-2 cursor-pointer hover:bg-neutral-100 dark:hover:bg-neutral-800/50 transition-colors rounded-md border-b border-neutral-100 dark:border-neutral-800 last:border-b-0",
+ isSelected && "bg-neutral-50 dark:bg-neutral-800"
)}
>
<div className="flex items-center gap-3 flex-1 min-w-0">
diff --git a/client/src/components/AppSidebar.tsx b/client/src/components/AppSidebar.tsx
index b4a06ae64..765b9c51f 100644
--- a/client/src/components/AppSidebar.tsx
+++ b/client/src/components/AppSidebar.tsx
@@ -99,7 +99,7 @@ function SidebarLink({
className={cn(
"p-1 rounded-md transition-all duration-200 flex items-center gap-2",
active
- ? "bg-neutral-200 dark:bg-neutral-800 text-neutral-900 dark:text-white"
+ ? "bg-neutral-150 dark:bg-neutral-800 text-neutral-800 dark:text-white"
: "text-neutral-600 dark:text-neutral-400 hover:text-neutral-900 dark:hover:text-white hover:bg-neutral-150 dark:hover:bg-neutral-800/80"
// expanded ? "w-40" : "w-12"
)}