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!

better project title styling

Blue Mouse7eafd96d7bfd
diff --git a/web/app/pages/Project/View/ViewProject.tsx b/web/app/pages/Project/View/ViewProject.tsx
index 2b7de7aba..38383e316 100644
--- a/web/app/pages/Project/View/ViewProject.tsx
+++ b/web/app/pages/Project/View/ViewProject.tsx
@@ -3444,12 +3444,13 @@ const ViewProjectContent = () => {
(activeTab !== PROJECT_TABS.sessions || !activePSID) &&
(activeFunnel || activeTab !== PROJECT_TABS.funnels) ? (
<>
- <div className='relative top-0 z-20 mb-2 flex flex-col items-center justify-between bg-gray-50/50 backdrop-blur-md lg:sticky lg:flex-row dark:bg-slate-900/50'>
+ <div className='relative top-0 z-20 -mt-2 flex flex-col items-center justify-between bg-gray-50/50 py-2 backdrop-blur-md lg:sticky lg:flex-row dark:bg-slate-900/50'>
<div className='flex flex-wrap items-center justify-center gap-2'>
- <Text as='h2' size='xl' weight='bold' className='break-words break-all'>
- {/* If tab is funnels - then display a funnel name, otherwise a project name */}
- {activeTab === PROJECT_TABS.funnels ? activeFunnel?.name : project.name}
- </Text>
+ {activeTab === PROJECT_TABS.funnels ? (
+ <Text as='h2' size='xl' weight='bold' className='break-words break-all'>
+ {activeFunnel?.name}
+ </Text>
+ ) : null}
{activeTab !== PROJECT_TABS.funnels ? <LiveVisitorsDropdown /> : null}
</div>
<div className='mx-auto mt-3 flex w-full max-w-[420px] flex-wrap items-center justify-center gap-x-2 gap-y-1 sm:mx-0 sm:w-auto sm:max-w-none sm:flex-nowrap sm:justify-between lg:mt-0'>
diff --git a/web/app/pages/Project/View/components/ProjectSidebar.tsx b/web/app/pages/Project/View/components/ProjectSidebar.tsx
index 3754adbf0..e54e7aa3d 100644
--- a/web/app/pages/Project/View/components/ProjectSidebar.tsx
+++ b/web/app/pages/Project/View/components/ProjectSidebar.tsx
@@ -23,8 +23,6 @@ const ICON_COLORS: Record<string, string> = {
sessions: 'text-violet-500',
funnels: 'text-pink-500',
errors: 'text-red-500',
- // Revenue Analytics (placeholder)
- revenue: 'text-green-500',
// Settings
settings: 'text-gray-500',
}
@@ -33,7 +31,6 @@ const ICON_COLORS: Record<string, string> = {
const GROUP_ICON_COLORS: Record<string, string> = {
webAnalytics: 'text-emerald-500',
productAnalytics: 'text-blue-500',
- revenueAnalytics: 'text-green-500',
}
interface Tab {
@@ -210,31 +207,17 @@ const ProjectSidebar: React.FC<ProjectSidebarProps> = ({
})
}
- // Revenue Analytics group (placeholder for future)
- // const revenueAnalyticsTabs = tabs.filter((tab) =>
- // ['revenue'].includes(tab.id),
- // )
- // if (revenueAnalyticsTabs.length > 0) {
- // groups.push({
- // id: 'revenueAnalytics',
- // label: t('dashboard.revenueAnalytics'),
- // icon: DollarSignIcon,
- // tabs: revenueAnalyticsTabs,
- // defaultExpanded: true,
- // })
- // }
-
return groups
}, [tabs, t])
return (
<aside className='flex h-full w-56 shrink-0 flex-col overflow-y-auto border-r border-gray-200 bg-white dark:border-slate-800 dark:bg-slate-900'>
{/* Project name at the top */}
- <div className='sticky top-0 z-10 border-b border-gray-200 bg-white px-3 py-3 dark:border-slate-800 dark:bg-slate-900'>
+ <div className='sticky top-0 z-10 flex items-center border-b border-gray-200 bg-white px-4 py-2 dark:border-slate-800 dark:bg-slate-900'>
<Tooltip
text={projectName}
tooltipNode={
- <Text as='p' size='sm' weight='medium' truncate className='max-w-full'>
+ <Text as='h2' size='lg' weight='semibold' truncate className='max-w-full'>
{projectName}
</Text>
}