Skip to content

Commit d009f65

Browse files
fix(web): update layout width
1 parent 87d4362 commit d009f65

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

apps/web/src/app/(home)/layout.tsx

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,23 @@ export default function Layout({ children }: { children: ReactNode }) {
1717

1818
if (pathname === "/new") {
1919
header.classList.remove("*:mx-auto", "*:max-w-fd-container");
20-
main.classList.remove("max-w-[1400px]", "mx-auto", "min-h-svh");
20+
main.classList.remove("max-w-[1280px]", "mx-auto", "min-h-svh");
2121
} else {
2222
header.classList.add("*:mx-auto", "*:max-w-fd-container");
23-
main.classList.add("max-w-[1400px]", "mx-auto", "min-h-svh");
23+
main.classList.add("max-w-[1280px]", "mx-auto", "min-h-svh");
2424
}
2525
}, [pathname]);
2626

2727
return (
28-
<HomeLayout {...baseOptions}>
29-
<main className="h-full w-full">{children}</main>
28+
<HomeLayout
29+
{...baseOptions}
30+
style={
31+
{
32+
"--spacing-fd-container": "1280px",
33+
} as object
34+
}
35+
>
36+
<main className="mx-auto h-full w-full">{children}</main>
3037
</HomeLayout>
3138
);
3239
}

apps/web/src/app/global.css

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@
55

66
@custom-variant dark (&:where(.dark, .dark *));
77

8-
:root {
9-
/* --fd-layout-width: 1400px; */
10-
/* --max-w-fh-container: 100%; */
11-
}
12-
138
.react-tweet-theme {
149
--tweet-container-margin: 0 !important;
1510
@apply !bg-fd-background !border-none !h-full !border-transparent !w-full;

apps/web/src/components/ai/page-actions.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export function LLMCopyButton({
5252

5353
return (
5454
<button
55+
type="button"
5556
disabled={isLoading}
5657
className={cn(
5758
buttonVariants({

0 commit comments

Comments
 (0)