Skip to content

Commit 6cae422

Browse files
authored
fix(docs): wrong image sizes in megamenu (#63)
1 parent e2c7bee commit 6cae422

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

apps/docs/src/components/LemonSqueezyHeader.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,10 @@ function ResourcesDropdown({ caseStudy, blog }: { caseStudy: WebflowData; blog:
196196
];
197197

198198
return (
199-
<div className="container">
199+
<div className="container !w-[calc(100%+40px)] 2xl:!max-w-7xl">
200200
<div className="grid grid-cols-3">
201201
{/* ----------------------------- Helpful Links ----------------------------- */}
202-
<Navigation.DropdownColumn className="-ml-4 pl-0">
202+
<Navigation.DropdownColumn className="-ml-4 pl-0 2xl:ml-6">
203203
<Navigation.DropdownTitle label="Helpful Links" id="dropdown-menu__helpful-links" />
204204

205205
{links.map(({ label, description, href }, index) => (
@@ -232,7 +232,7 @@ function ResourcesDropdown({ caseStudy, blog }: { caseStudy: WebflowData; blog:
232232
</Navigation.DropdownColumn>
233233

234234
{/* ----------------------------- Blog Articles ---------------------------- */}
235-
<Navigation.DropdownColumn className="-mr-4 place-content-start border-none pr-0">
235+
<Navigation.DropdownColumn className="place-content-start border-none">
236236
<Navigation.DropdownTitle
237237
buttonHref="https://www.lemonsqueezy.com/blog"
238238
buttonLabel="All articles"

apps/docs/src/components/Navigation.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ const NavDropdownTitle = forwardRef<HTMLDivElement, NavDropdownTitleProps>(
209209
({ label, buttonHref, buttonLabel, ...otherProps }, ref) => {
210210
return (
211211
<div
212-
className="mx-4 mb-4 flex items-center justify-between gap-3 text-sm"
212+
className="mx-4 mb-4 flex shrink-0 flex-wrap items-center justify-between gap-3 text-sm"
213213
ref={ref}
214214
{...otherProps}
215215
>

apps/docs/tailwind.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ const config: Config = {
3030
darkMode: "class",
3131
theme: {
3232
extend: {
33+
screens: {
34+
"2xl": "82rem",
35+
},
3336
typography: {
3437
DEFAULT: {
3538
css: {
@@ -62,6 +65,7 @@ const config: Config = {
6265
},
6366

6467
maxWidth: {
68+
"7xl": "82rem",
6569
"8xl": "88rem",
6670
"9xl": "96rem",
6771
"10xl": "102rem",

0 commit comments

Comments
 (0)