Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

add tab buttons colour transition

Blue Mouse40b265c2b8c8
diff --git a/web/app/pages/Dashboard/Tabs.tsx b/web/app/pages/Dashboard/Tabs.tsx
index d20b9d0e1..05b65ae55 100644
--- a/web/app/pages/Dashboard/Tabs.tsx
+++ b/web/app/pages/Dashboard/Tabs.tsx
@@ -55,7 +55,7 @@ export const Tabs = ({ activeTab, setActiveTab, className, isLoading }: TabsProp
setActiveTab(tab.id)
}}
className={cx(
- 'text-md group inline-flex cursor-pointer items-center border-b-2 px-1 py-2 font-bold whitespace-nowrap',
+ 'text-md group inline-flex cursor-pointer items-center border-b-2 px-1 py-2 font-bold whitespace-nowrap transition-all duration-200',
{
'border-slate-900 text-slate-900 dark:border-gray-50 dark:text-gray-50': isCurrent,
'border-transparent text-gray-500 dark:text-gray-400': !isCurrent,
diff --git a/web/app/pages/Project/View/ViewProject.tsx b/web/app/pages/Project/View/ViewProject.tsx
index 8f29266ae..99c391fa9 100644
--- a/web/app/pages/Project/View/ViewProject.tsx
+++ b/web/app/pages/Project/View/ViewProject.tsx
@@ -2483,7 +2483,7 @@ const ViewProject = () => {
to={tabUrl}
onClick={handleClick}
className={cx(
- 'text-md group inline-flex cursor-pointer items-center border-b-2 px-1 py-2 font-bold whitespace-nowrap',
+ 'text-md group inline-flex cursor-pointer items-center border-b-2 px-1 py-2 font-bold whitespace-nowrap transition-all duration-200',
{
'border-slate-900 text-slate-900 dark:border-gray-50 dark:text-gray-50': isCurrent,
'border-transparent text-gray-500 dark:text-gray-400': !isCurrent,
diff --git a/web/app/pages/UserSettings/UserSettings.tsx b/web/app/pages/UserSettings/UserSettings.tsx
index 8227f0bbb..835906399 100644
--- a/web/app/pages/UserSettings/UserSettings.tsx
+++ b/web/app/pages/UserSettings/UserSettings.tsx
@@ -445,7 +445,7 @@ const UserSettings = () => {
key={tab.id}
onClick={onClick}
className={cx(
- 'text-md group inline-flex cursor-pointer items-center border-b-2 px-1 py-2 font-bold whitespace-nowrap',
+ 'text-md group inline-flex cursor-pointer items-center border-b-2 px-1 py-2 font-bold whitespace-nowrap transition-all duration-200',
{
'border-slate-900 text-slate-900 dark:border-gray-50 dark:text-gray-50': isCurrent,
'border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700 dark:text-gray-400 dark:hover:border-gray-300 dark:hover:text-gray-300':