style(views): elevate AnalyticsView to SaaS Premium standards

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
senke 2026-02-07 09:44:52 +01:00
parent 3da74c6012
commit 7eacfb0e7f
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@ const meta: Meta<typeof AnalyticsView> = {
tags: ['autodocs'],
decorators: [
(Story) => (
<div className="bg-kodo-background min-h-layout-page">
<div className="bg-background min-h-layout-page">
<Story />
</div>
),

View file

@ -25,7 +25,7 @@ export function AnalyticsViewOrigins({ sources }: AnalyticsViewOriginsProps) {
</div>
<div className="h-1.5 bg-white/5 rounded-full overflow-hidden">
<div
className={cn('h-full transition-all duration-1000', src.color.replace('bg-kodo-', 'bg-'))}
className={cn('h-full transition-all duration-1000', src.color.replace(/^bg-kodo-/, 'bg-'))}
style={{ width: `${src.val}%` }}
/>
</div>