Skip to content

Commit 854d1a2

Browse files
committed
fix: ensure pages have headings & consistent margins
1 parent cd1edee commit 854d1a2

File tree

9 files changed

+17
-11
lines changed

9 files changed

+17
-11
lines changed

src/app/create_private_message/[userid]/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const CreateDirectMessagePage = async (props: {
1818
});
1919

2020
return (
21-
<div className={"m-2 lg:m-4"}>
21+
<div className={"m-2 lg:mx-4"}>
2222
<h1 className={"mb-4 text-xl font-bold"}>
2323
{"Composing direct message..."}
2424
</h1>

src/app/inbox/page.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ const InboxPage = async (props: {
9191
];
9292

9393
return (
94-
<div className={"m-2 lg:m-4"}>
94+
<div className={"m-2 lg:mx-4"}>
95+
<h1 className={"mb-2 text-xl font-bold"}>{"Inbox"}</h1>
96+
9597
<SearchParamLinks
9698
currentActiveValue={currentType}
9799
label={"Type"}

src/app/login_reset/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { resetPasswordAction } from "@/app/login_reset/loginResetActions";
44

55
const ForgotPasswordPage = () => {
66
return (
7-
<div className={"m-2 lg:m-4"}>
7+
<div className={"m-2 lg:mx-4"}>
88
<h1 className={"text-xl font-bold"}>{"Forgot password"}</h1>
99
<div className={"mt-10 max-w-[600px] text-gray-400"}>
1010
{

src/app/login_reset/sent/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { SubmitButton } from "@/app/(ui)/button/SubmitButton";
33

44
const ForgotPasswordPage = () => {
55
return (
6-
<div className={"m-2 lg:m-4"}>
6+
<div className={"m-2 lg:mx-4"}>
77
<h1 className={"text-xl font-bold"}>{"Forgot password"}</h1>
88
<div className={"mt-10 max-w-[600px] text-gray-300"}>
99
{"A password reset link has been sent to your e-mail."}

src/app/password_change/[token]/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { setNewPasswordAfterReset } from "@/app/login_reset/loginResetActions";
44

55
const PasswordChangePage = (props: { readonly params: { token: string } }) => {
66
return (
7-
<div className={"m-2 lg:m-4"}>
7+
<div className={"m-2 lg:mx-4"}>
88
<h1 className={"text-xl font-bold"}>{"Set new password"}</h1>
99

1010
<div>

src/app/saved/page.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ const SavedPage = async (props: {
4646
(comments.length ?? 0) === limit || (posts.length ?? 0) === limit;
4747

4848
return (
49-
<div className={"m-3"}>
50-
<h1 className={"text-xl font-bold"}>{"Saved"}</h1>
51-
<div className={"mt-2"}>
49+
<div className={"m-2 lg:mx-4"}>
50+
<h1 className={"mb-2 text-xl font-bold"}>{"Saved"}</h1>
51+
<div>
5252
<SearchParamLinks
5353
currentActiveValue={currentSortType}
5454
label={"Sort"}

src/app/search/page.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ const SearchPage = async (props: {
7474
(data?.users.length ?? 0) === limit;
7575

7676
return (
77-
<div className={"m-2 lg:m-4"}>
77+
<div className={"m-2 lg:mx-4"}>
78+
<h1 className={"mb-2 text-xl font-bold"}>{"Search"}</h1>
79+
7880
<div className={""}>
7981
<SearchParamLinks
8082
currentActiveValue={currentSearchType}

src/app/settings/page.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ const SettingsPage = async () => {
1515

1616
return (
1717
<div className={"m-2 lg:mx-4"}>
18-
<div className={"flex flex-wrap items-center"}>
18+
<div className={"flex flex-wrap items-center gap-2"}>
19+
<h1 className={"mb-2 text-xl font-bold"}>{"User settings"}</h1>
20+
1921
<StyledLink
2022
className={"mr-auto flex items-center gap-1"}
2123
href={`/u/${loggedInUser.local_user_view.person.name}`}

src/app/u/[username]/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ const UserPage = async (props: UserPageProps) => {
100100
]);
101101

102102
return (
103-
<div className={"m-2 flex flex-col gap-2 lg:m-4"}>
103+
<div className={"m-2 flex flex-col gap-2 lg:mx-4"}>
104104
<Header view={personView} />
105105
<div className={""}>
106106
<MarkdownWithFetchedContent id={personView.person.id} type={"person"} />

0 commit comments

Comments
 (0)