From 11567779a52deb806beb36dd2f68b3d72b189066 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Burak=20Boduro=C4=9Flu?= <80620802+burakboduroglu@users.noreply.github.com> Date: Sat, 26 Sep 2026 13:26:48 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=A9=B9=20pin=20the=20settings=20di?= =?UTF-8?q?alog=20save=20bar=20to=20its=20edges=20-=20the=20account=20sect?= =?UTF-8?q?ion's=20scroll=20area=20drops=20its=20bottom=20padding,=20which?= =?UTF-8?q?=20let=20=20=20content=20scroll=20past=20under=20the=20sticky?= =?UTF-8?q?=20save=20bar=20-=20ProfileForm=20takes=20a=20footerClass=20so?= =?UTF-8?q?=20the=20dialog=20pulls=20the=20bar=20flush=20to=20=20=20its=20?= =?UTF-8?q?right=20edge=20past=20the=20close-button=20gutter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/users/account-profile-dialog.tsx | 6 +++++- src/components/users/profile-form.tsx | 8 +++++++- 2 files changed, 12 insertions(+), 2 deletions(-) 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()}

} -
+