Release 0.14.0-alpha #42

Merged
uz1mani merged 109 commits from staging into main 2026-03-12 12:12:03 +00:00
66 changed files with 6947 additions and 1851 deletions
Showing only changes of commit 34eca64967 - Show all commits

View File

@@ -359,8 +359,8 @@ export default function Chart({
)}
</div>
<div className="text-xs text-neutral-400 dark:text-neutral-500 mt-1">{(() => {
const days = Math.round((new Date(dateRange.end).getTime() - new Date(dateRange.start).getTime()) / 86400000) + 1
return days <= 1 ? 'vs yesterday' : `vs previous ${days} days`
const days = Math.round((new Date(dateRange.end).getTime() - new Date(dateRange.start).getTime()) / 86400000)
return days === 0 ? 'vs yesterday' : `vs previous ${days} days`
})()}</div>
{metric === m.key && (
<div className="absolute bottom-0 left-0 right-0 h-0.5 bg-brand-orange" />