Skip to content

Commit

Permalink
fix: headline appears on three lines,
Browse files Browse the repository at this point in the history
not sure why on desktop it seemed to be 2 lines, but on laptop
and on ci it was on 3 lines.

this was consistent for each screen size too e.g. small & large when
on desktop.

maybe browser version renders differently? in any case, increasing
headline container width should fix this.
  • Loading branch information
keyserj committed Jan 11, 2025
1 parent 242cbd5 commit 803b1cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/web/home/Headline.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export const Headline = () => {
cars-going-too-fast
</Link>
</Typography>
{/* max-w-34rem to barely fit the headline on two lines */}
<div className="relative my-24 flex max-w-[34rem] flex-col gap-4 rounded-3xl bg-paperPlain-main text-center sm:my-32 sm:border sm:border-primary-main sm:p-8 sm:text-left sm:shadow-xl">
{/* max-w-xl to barely fit the headline on two lines */}
<div className="relative my-24 flex max-w-xl flex-col gap-4 rounded-3xl bg-paperPlain-main text-center sm:my-32 sm:border sm:border-primary-main sm:p-8 sm:text-left sm:shadow-xl">
<Typography
variant="h1"
fontWeight="bold"
Expand Down

0 comments on commit 803b1cb

Please sign in to comment.