Skip to content

Commit fcbdd0d

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

File tree

6 files changed

+12
-11
lines changed

6 files changed

+12
-11
lines changed

apps/web/src/app/(home)/analytics/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ export default function AnalyticsPage() {
946946
const hourlyDistributionData = getHourlyDistributionData();
947947

948948
return (
949-
<div className="min-h-svh">
949+
<div className="mx-auto min-h-svh max-w-[1280px]">
950950
<div className="container mx-auto space-y-8 px-4 py-8 pt-16">
951951
<div className="mb-8">
952952
<div className="mb-6 flex flex-wrap items-center justify-between gap-2 sm:flex-nowrap">

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,20 @@ 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");
2120
} else {
2221
header.classList.add("*:mx-auto", "*:max-w-fd-container");
23-
main.classList.add("max-w-[1400px]", "mx-auto", "min-h-svh");
2422
}
2523
}, [pathname]);
2624

2725
return (
28-
<HomeLayout {...baseOptions}>
26+
<HomeLayout
27+
{...baseOptions}
28+
style={
29+
{
30+
"--spacing-fd-container": "1280px",
31+
} as object
32+
}
33+
>
2934
<main className="h-full w-full">{children}</main>
3035
</HomeLayout>
3136
);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default function HomePage() {
5858
};
5959

6060
return (
61-
<div className="min-h-svh">
61+
<div className="mx-auto min-h-svh max-w-[1280px]">
6262
<main className="mx-auto px-4 pt-16">
6363
<div className="mb-8 flex items-center justify-center">
6464
<div className="flex flex-wrap items-center justify-center gap-2 sm:gap-4 md:gap-6">

apps/web/src/app/(home)/showcase/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const showcaseProjects = [
7070

7171
export default function ShowcasePage() {
7272
return (
73-
<main className="min-h-svh">
73+
<main className="mx-auto min-h-svh max-w-[1280px]">
7474
<div className="container mx-auto space-y-8 px-4 py-8 pt-16">
7575
<div className="mb-8">
7676
<div className="mb-6 flex flex-wrap items-center justify-between gap-2 sm:flex-nowrap">

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)