Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
fix(settings): drop the opaque fill behind each page's header
aivsomkar35fd879ef087
diff --git a/src/components/settings/SettingsPageHeader.tsx b/src/components/settings/SettingsPageHeader.tsxindex 4958414805..7ee6eb2dfa 100644--- a/src/components/settings/SettingsPageHeader.tsx+++ b/src/components/settings/SettingsPageHeader.tsx@@ -54,8 +54,8 @@ export function ScopeLine({ page, ctx, place }: { page: SettingsPage; ctx: Setti);}-export function SettingsPageHeader({ page, ctx, place, scrolled, narrow, missing }: {- page: SettingsPage; ctx: SettingsContext; place: SettingsPlace; scrolled: boolean; narrow: boolean; missing?: string;+export function SettingsPageHeader({ page, ctx, place, narrow, missing }: {+ page: SettingsPage; ctx: SettingsContext; place: SettingsPlace; narrow: boolean; missing?: string;}) {// A browser has no updates of its own, so its This app intro leaves them out.const intro = page.id !== "app" ? INTRO[page.id]@@ -63,8 +63,8 @@ export function SettingsPageHeader({ page, ctx, place, scrolled, narrow, missing: ctx.advanced ? INTRO.app : "settings.app.introSimple";const title = page.id === "account" ? t("settings.page.account") : pageLabel(page, place, ctx.desktop);return (- <header data-settings-header="" className={cn("sticky top-0 z-10 flex flex-col gap-1 bg-(--settings-sheet) pb-5", narrow ? "px-8 pt-1" : "pl-4 pt-4",- scrolled && "shadow-[0_0.5px_0_var(--settings-edge)]")}>+ // 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>}<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>}diff --git a/src/components/settings/SettingsWindow.tsx b/src/components/settings/SettingsWindow.tsxindex 2f0cd37f04..e1f42dfd7f 100644--- a/src/components/settings/SettingsWindow.tsx+++ b/src/components/settings/SettingsWindow.tsx@@ -58,7 +58,6 @@ export function SettingsWindow() {const [anchor, setAnchor] = useState<string | null>(target.anchor ?? null);const [narrowPage, setNarrowPage] = useState(state.appSettingsSection !== "overview");const [query, setQuery] = useState("");- const [scrolled, setScrolled] = useState(false);const pages = visiblePages(ctx);const page = pageById(target.page);const dialogRef = useRef<HTMLDivElement>(null);@@ -186,10 +185,10 @@ export function SettingsWindow() {{(!narrow || !showList) && (<div className="relative flex min-h-0 min-w-0 flex-1 flex-col">{!narrow && closeButton}- <div ref={scrollRef} data-settings-scroll data-settings-content="" onScroll={(event) => setScrolled(event.currentTarget.scrollTop > 0)}+ <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")}><div className={cn("flex max-w-[640px] flex-col", narrow && "max-w-none")}>- <SettingsPageHeader page={page} ctx={ctx} place={place} scrolled={scrolled} narrow={narrow} missing={missing} />+ <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")}><LicenseExpiryBanner config={state.config} />{page.owner === "place" && state.config === nulldiff --git a/src/styles.css b/src/styles.cssindex 152e47d287..13a8cb2d56 100644--- a/src/styles.css+++ b/src/styles.css@@ -1687,7 +1687,6 @@ body {/* Settings: cards and fields edge in one faint ink line. In Midnight and Daylight the sheet is opaque, in the pagecolour, with no shadow; every other skin keeps its glass. */[data-settings-look] {- --settings-sheet: var(--color-menu);--settings-edge: color-mix(in srgb, var(--color-ink) 10%, transparent);--switch-on: var(--color-accent);--switch-knob-on: #fff;@@ -1698,7 +1697,6 @@ body {--switch-outline: color-mix(in srgb, var(--color-ink) 40%, transparent);}:root:is([data-skin="midnight"], [data-skin="daylight"]) [data-settings-look] {- --settings-sheet: var(--color-app);--switch-on: var(--color-ink);--switch-knob-on: var(--color-app);}