Skip to content

Commit

Permalink
fix: prevent header text appear as two lines
Browse files Browse the repository at this point in the history
  • Loading branch information
yiukuenchu committed Oct 8, 2024
1 parent f507e4d commit a570ccb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ export default async function Header() {

return (
<>
<HeaderClient data={headerData} className="hidden md:block" />
<HeaderMobileClient data={headerData} className="md:hidden" />
{/* prettier-ignore */}
<HeaderClient data={headerData} className="hidden lg-xl:block" />
<HeaderMobileClient data={headerData} className="lg-xl:hidden" />
</>
);
}
1 change: 1 addition & 0 deletions tailwind.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ const config: Config = {
// so a custom breakpoint was created to overwrite it
// and now a CSS pattern can be applied with this breakpoint.
'md-lg': '1169px',
'lg-xl': '1300px',
},
},
},
Expand Down

0 comments on commit a570ccb

Please sign in to comment.