Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

fix: stroke color on pie and default report name

Carl-Gerhard Lindesvärdea029648a5c7
diff --git a/apps/start/src/components/report-chart/pie/chart.tsx b/apps/start/src/components/report-chart/pie/chart.tsx
index 506b59cac..ad7b1054b 100644
--- a/apps/start/src/components/report-chart/pie/chart.tsx
+++ b/apps/start/src/components/report-chart/pie/chart.tsx
@@ -100,8 +100,8 @@ export function Chart({ data }: Props) {
return (
<Cell
key={item.id}
- strokeWidth={2}
- stroke={'#fff'}
+ strokeWidth={4}
+ className="stroke-background"
fill={item.color}
/>
);
diff --git a/apps/start/src/components/report/edit-report-name.tsx b/apps/start/src/components/report/edit-report-name.tsx
index 14b310fbc..b0c767b15 100644
--- a/apps/start/src/components/report/edit-report-name.tsx
+++ b/apps/start/src/components/report/edit-report-name.tsx
@@ -65,7 +65,7 @@ const EditReportName = ({ name }: Props) => {
className="flex cursor-pointer select-none items-center gap-2 text-xl font-medium h-8 group"
onClick={() => setIsEditing(true)}
>
- {newName ?? 'Unnamed Report'}
+ {newName || 'Unnamed Report'}
<PencilIcon
size={16}
className="opacity-0 group-hover:opacity-100 transition-opacity"