diff --git a/src/components/users/account-profile-dialog.tsx b/src/components/users/account-profile-dialog.tsx index 7514862..927227d 100644 --- a/src/components/users/account-profile-dialog.tsx +++ b/src/components/users/account-profile-dialog.tsx @@ -62,11 +62,15 @@ export function AccountProfileDialog(props: { open: boolean; onOpenChange: (open {navItem("appearance", t("settings.tabAppearance"), )} -
+ {/* The account form's save bar is sticky at the bottom of this + scroll area, so that section drops the bottom padding — any + padding under a sticky bar shows content scrolling past it. */} +
{ await auth.refresh(); props.onOpenChange(false); diff --git a/src/components/users/profile-form.tsx b/src/components/users/profile-form.tsx index d7d473e..0c76bfb 100644 --- a/src/components/users/profile-form.tsx +++ b/src/components/users/profile-form.tsx @@ -1,4 +1,5 @@ import { For, Show, createSignal } from "solid-js"; +import { cn } from "@/lib/cn"; import { patchMe } from "@/api/users"; import type { Gender, ProfileUpdate, User } from "@/api/client"; import { formatApiError } from "@/api/client"; @@ -57,6 +58,11 @@ export function ProfileForm(props: { branches?: string[]; maxDisplayNameLen?: number; maxBioLen?: number; + /** + * Extra classes for the sticky save bar, so a host whose scroll area has + * other padding can pull the bar flush to its edges (the settings dialog). + */ + footerClass?: string; /** Cap for the address field, from limits.user.max_address_len. */ maxAddressLen?: number; /** @@ -274,7 +280,7 @@ export function ProfileForm(props: {
{error() &&

{error()}

} -
+