Skip to content

Commit c710206

Browse files
committed
fix(webapp): force promo heading leading-tight at all breakpoints
Header1's responsive font-size overrides (md:text-3xl, lg:text-4xl) carry their own line-heights, so a single base leading-tight did not reliably win at md/lg widths and the wrapped title could still overlap. Set leading-tight explicitly per breakpoint, ordered after each font size, so the relative 1.25 line-height always applies.
1 parent 067b0d3 commit c710206

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/webapp/app/routes/promo.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export default function PromoPage() {
139139
<div className="flex w-full flex-col">
140140
{data.view === "signed_in" ? (
141141
<>
142-
<Header1 className="pb-4 leading-tight sm:text-2xl md:text-3xl lg:text-4xl">
142+
<Header1 className="pb-4 leading-tight sm:text-2xl md:text-3xl md:leading-tight lg:text-4xl lg:leading-tight">
143143
Promo codes are for new accounts
144144
</Header1>
145145
<Paragraph variant="base" spacing>
@@ -151,7 +151,7 @@ export default function PromoPage() {
151151
</>
152152
) : (
153153
<>
154-
<Header1 className="pb-4 leading-tight sm:text-2xl md:text-3xl lg:text-4xl">
154+
<Header1 className="pb-4 leading-tight sm:text-2xl md:text-3xl md:leading-tight lg:text-4xl lg:leading-tight">
155155
{data.view === "valid"
156156
? `Claim ${formatDollars(data.amountInCents)} credits`
157157
: "Create your account"}

0 commit comments

Comments
 (0)