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!

fix growth indicator alignment

Blue Mouse551a71413988
diff --git a/web/app/pages/Dashboard/ProjectCard.tsx b/web/app/pages/Dashboard/ProjectCard.tsx
index c1c7866dd..a193de30f 100644
--- a/web/app/pages/Dashboard/ProjectCard.tsx
+++ b/web/app/pages/Dashboard/ProjectCard.tsx
@@ -56,19 +56,19 @@ const MiniCard = ({ labelTKey, total, percChange }: MiniCardProps) => {
<p className='text-xl text-gray-700 dark:text-gray-100'>{_isNumber(total) ? nFormatter(total) : total}</p>
{_isNumber(percChange) ? (
<p
- className={cx('flex items-center text-xs', {
+ className={cx('flex items-start text-xs', {
'text-green-600': statsDidGrowUp,
'text-slate-600 dark:text-slate-400': !statsDidGrowUp,
})}
>
{statsDidGrowUp ? (
<>
- <ChevronUpIcon className='h-4 w-4 shrink-0 self-center text-green-500' />
+ <ChevronUpIcon className='h-4 w-4 shrink-0 text-green-500' />
<span className='sr-only'>{t('dashboard.inc')}</span>
</>
) : (
<>
- <ChevronDownIcon className='h-4 w-4 shrink-0 self-center text-slate-500 dark:text-slate-400' />
+ <ChevronDownIcon className='h-4 w-4 shrink-0 text-slate-500 dark:text-slate-400' />
<span className='sr-only'>{t('dashboard.dec')}</span>
</>
)}