Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
fix(settings): keep cards clear of the floating close button
aivsomkarcd034ea47fdc
diff --git a/src/components/settings/SettingsPageHeader.tsx b/src/components/settings/SettingsPageHeader.tsxindex 7ee6eb2dfa..0cd499d98c 100644--- a/src/components/settings/SettingsPageHeader.tsx+++ b/src/components/settings/SettingsPageHeader.tsx@@ -65,7 +65,7 @@ export function SettingsPageHeader({ page, ctx, place, narrow, missing }: {return (// No fill and not sticky: on a glass skin any opaque fill reads as a white block over the sheet.<header data-settings-header="" className={cn("flex flex-col gap-1 pb-5", narrow ? "px-8 pt-1" : "pl-4 pt-4")}>- {!narrow && <h2 id="settings-page-title" className="truncate pr-12 text-[18px] font-semibold leading-6 tracking-[-0.01em] text-ink">{title}</h2>}+ {!narrow && <h2 id="settings-page-title" className="truncate text-[18px] font-semibold leading-6 tracking-[-0.01em] text-ink">{title}</h2>}<ScopeLine page={page} ctx={ctx} place={place} />{intro && <p data-settings-intro={intro} className="text-[13px] leading-[18px] text-ink-secondary">{t(intro, { place: place.name, app: productName() })}</p>}{missing && <p role="status" className="text-[13px] leading-[18px] text-ink-secondary">{t("settings.missingHere", { page: missing, place: place.name })}</p>}diff --git a/src/components/settings/SettingsWindow.tsx b/src/components/settings/SettingsWindow.tsxindex 63feac11f7..c5e4cfb9a4 100644--- a/src/components/settings/SettingsWindow.tsx+++ b/src/components/settings/SettingsWindow.tsx@@ -185,8 +185,9 @@ export function SettingsWindow() {{(!narrow || !showList) && (<div className="relative flex min-h-0 min-w-0 flex-1 flex-col">{!narrow && closeButton}+ {/* pr-16 keeps cards clear of the floating close button (right-3 + size-8 = 44 px) as they scroll under it. */}<div ref={scrollRef} data-settings-scroll data-settings-content=""- className={cn("settings-scroll min-h-0 flex-1 overflow-y-auto [scrollbar-gutter:stable]", narrow ? "pb-12" : "px-8 pb-12")}>+ className={cn("settings-scroll min-h-0 flex-1 overflow-y-auto [scrollbar-gutter:stable]", narrow ? "pb-12" : "pb-12 pl-8 pr-16")}><div className={cn("flex max-w-[640px] flex-col", narrow && "max-w-none")}><SettingsPageHeader page={page} ctx={ctx} place={place} narrow={narrow} missing={missing} /><div key={target.page} data-settings-page-body={target.page} className={cn("flex flex-col gap-6", narrow && "px-4")}>