Skip to content

The Open Source DocuSign Alternative.

chore: updated styling of tooltips and margins

Adithya Krishna691255da3fcb
diff --git a/apps/marketing/src/app/(marketing)/open/monthly-new-users-chart.tsx b/apps/marketing/src/app/(marketing)/open/monthly-new-users-chart.tsx
index b96bbf50d..0df73e30c 100644
--- a/apps/marketing/src/app/(marketing)/open/monthly-new-users-chart.tsx
+++ b/apps/marketing/src/app/(marketing)/open/monthly-new-users-chart.tsx
@@ -14,7 +14,7 @@ export type MonthlyNewUsersChartProps = {
export const MonthlyNewUsersChart = ({ className, data }: MonthlyNewUsersChartProps) => {
const formattedData = [...data].reverse().map(({ month, count }) => {
return {
- month: DateTime.fromFormat(month, 'yyyy-MM').toFormat('LLL'),
+ month: DateTime.fromFormat(month, 'yyyy-MM').toFormat('LLLL'),
count: Number(count),
};
});
@@ -32,6 +32,9 @@ export const MonthlyNewUsersChart = ({ className, data }: MonthlyNewUsersChartPr
<YAxis />
<Tooltip
+ labelStyle={{
+ color: 'hsl(var(--primary-foreground))',
+ }}
formatter={(value) => [Number(value).toLocaleString('en-US'), 'New Users']}
cursor={{ fill: 'hsl(var(--primary) / 10%)' }}
/>
diff --git a/apps/marketing/src/app/(marketing)/open/monthly-total-users-chart.tsx b/apps/marketing/src/app/(marketing)/open/monthly-total-users-chart.tsx
index e31bb9def..96ce34556 100644
--- a/apps/marketing/src/app/(marketing)/open/monthly-total-users-chart.tsx
+++ b/apps/marketing/src/app/(marketing)/open/monthly-total-users-chart.tsx
@@ -14,7 +14,7 @@ export type MonthlyTotalUsersChartProps = {
export const MonthlyTotalUsersChart = ({ className, data }: MonthlyTotalUsersChartProps) => {
const formattedData = [...data].reverse().map(({ month, cume_count: count }) => {
return {
- month: DateTime.fromFormat(month, 'yyyy-MM').toFormat('LLL'),
+ month: DateTime.fromFormat(month, 'yyyy-MM').toFormat('LLLL'),
count: Number(count),
};
});
@@ -32,6 +32,9 @@ export const MonthlyTotalUsersChart = ({ className, data }: MonthlyTotalUsersCha
<YAxis />
<Tooltip
+ labelStyle={{
+ color: 'hsl(var(--primary-foreground))',
+ }}
formatter={(value) => [Number(value).toLocaleString('en-US'), 'Total Users']}
cursor={{ fill: 'hsl(var(--primary) / 10%)' }}
/>
diff --git a/apps/marketing/src/app/(marketing)/open/typefully.tsx b/apps/marketing/src/app/(marketing)/open/typefully.tsx
index 1a927d4d6..809b0f6c3 100644
--- a/apps/marketing/src/app/(marketing)/open/typefully.tsx
+++ b/apps/marketing/src/app/(marketing)/open/typefully.tsx
@@ -22,7 +22,7 @@ export const Typefully = ({ className, ...props }: TypefullyProps) => {
<div className={cn('flex flex-col', className)} {...props}>
<h3 className="px-4 text-lg font-semibold">Twitter Stats</h3>
- <div className="border-border mt-2.5 flex flex-1 items-center justify-center rounded-2xl border shadow-sm hover:shadow">
+ <div className="border-border mt-2.5 flex flex-1 items-center justify-center rounded-2xl border py-8 shadow-sm hover:shadow">
{!isSSR && (
<div className="flex flex-col gap-y-4 text-center">
<Image className="opacity-75" src={Twitter} alt="Twitter Logo" width={120} />