From 180e32016146806b42a6cb1b465a1b48e42c7520 Mon Sep 17 00:00:00 2001 From: Travis Vachon Date: Mon, 5 Feb 2024 12:03:35 -0800 Subject: [PATCH] fix: tweak plan page styles there was an edge case right at one of the most common sizes, so: a) use `nbsp`s to make sure the words in the usage bar never go to two levels b) fine tune the `lg` breakpoint on the plan page I'm using a custom width `w-[21rem]` that is still in-line with the design system but imho should not be used more widely so I've decided _not_ to add it to the tailwind config. If we end up using this in more places it should be added there later. --- src/app/plans/change/page.tsx | 4 ++-- src/components/UsageBar.tsx | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/plans/change/page.tsx b/src/app/plans/change/page.tsx index e704124..f2384e8 100644 --- a/src/app/plans/change/page.tsx +++ b/src/app/plans/change/page.tsx @@ -36,7 +36,7 @@ function PlanSection ({ planID, planName, flatFee, flatFeeAllotment, perGbFee }: setIsUpdatingPlan(false) } return ( -
+
{planName}
@@ -87,7 +87,7 @@ export default function Plans () {

Plans

Pick the price plan that works for you.

-
+
diff --git a/src/components/UsageBar.tsx b/src/components/UsageBar.tsx index 71b1964..fd0748e 100644 --- a/src/components/UsageBar.tsx +++ b/src/components/UsageBar.tsx @@ -61,16 +61,16 @@ export function UsageBar (): ReactNode {
{plan?.product ? (
-
Plan: {Plans[plan.product]?.name ?? plan.product}
+
Plan: {Plans[plan.product]?.name ?? plan.product}
- change plan + change plan - update billing + update billing
) : null}