Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
UI polish round 6: matching side panels, one accent, tidier Settings frame
aivsomkar6b4480aa1864
diff --git a/src/components/ModelPickerFull.tsx b/src/components/ModelPickerFull.tsxindex dab4e8547a..9a7765d855 100644--- a/src/components/ModelPickerFull.tsx+++ b/src/components/ModelPickerFull.tsx@@ -52,7 +52,7 @@ export function ModelRow({ option, current, defaultId, botModel = false, onPick{t("model.loadedNow")}</span>)}- {current && <Check size={14} className="shrink-0 text-accent" aria-hidden="true" />}+ {current && <Check size={14} className="shrink-0 text-ink" aria-hidden="true" />}</button>);}@@ -71,7 +71,7 @@ export function FollowBotModelRow({ name, model, follows, onPick }: { name: stri<span className="shrink-0 font-medium">{t("model.useBotModel", { name })}</span><span className="truncate text-[12px] leading-4 text-ink-tertiary">{model}</span></span>- {follows && <Check size={14} className="shrink-0 text-accent" aria-hidden="true" />}+ {follows && <Check size={14} className="shrink-0 text-ink" aria-hidden="true" />}</button>);}diff --git a/src/components/SettingsModal.tsx b/src/components/SettingsModal.tsxindex 5cdfdfe8df..0c887a1a17 100644--- a/src/components/SettingsModal.tsx+++ b/src/components/SettingsModal.tsx@@ -562,7 +562,7 @@ export function SettingsModal() {onClick={close}aria-label={t("settings.close")}title={`${t("settings.close")} (${shortcutLabel("close-panel")})`}- className="absolute right-3 top-3 flex size-8 cursor-pointer items-center justify-center rounded-full text-ink-secondary transition-colors hover:bg-ink/[0.06] hover:text-ink motion-reduce:transition-none"+ className="absolute right-5 top-[18px] flex size-8 cursor-pointer items-center justify-center rounded-full text-ink-secondary transition-colors hover:bg-ink/[0.06] hover:text-ink motion-reduce:transition-none"><X size={16} aria-hidden="true" /></button>diff --git a/src/components/SidebarInboxRow.tsx b/src/components/SidebarInboxRow.tsxindex 9d0205e9b5..fcd78c27f2 100644--- a/src/components/SidebarInboxRow.tsx+++ b/src/components/SidebarInboxRow.tsx@@ -40,7 +40,7 @@ export function SidebarInboxRow({ icons, large, running, onOpened }: {return (<div className="px-3 pb-1"><button type="button" data-sidebar-inbox={count} aria-label={label} title={label} aria-pressed={open} onClick={toggle}- className={cn("flex w-full min-w-0 items-center gap-2.5 rounded-lg px-2 py-1.5 text-left outline-none hover:bg-raised/60 focus-visible:ring-2 focus-visible:ring-accent/60", open && "bg-raised/60")}>+ className={cn("flex w-full min-w-0 items-center gap-2.5 rounded-lg px-2 py-1.5 text-left outline-none hover:bg-raised/60 focus-visible:ring-2 focus-visible:ring-accent/60", open && "bg-ink/[0.05]")}><span className={cn("relative grid shrink-0 place-items-center rounded-full bg-raised text-ink-secondary", large ? "size-9" : "size-8")}><Inbox size={large ? 18 : 16} strokeWidth={1.75} aria-hidden="true" />{dot}diff --git a/src/components/SimpleModelMenu.tsx b/src/components/SimpleModelMenu.tsxindex 3a58e35184..85338566bd 100644--- a/src/components/SimpleModelMenu.tsx+++ b/src/components/SimpleModelMenu.tsx@@ -72,7 +72,7 @@ function MenuModel({ instance, row, onPick }: { instance: InstanceInfo; row: Men{row.route && <span data-simple-route className={SIMPLE_MENU_META}>{row.route}</span>}{reason && <span data-simple-org-blocked className={SIMPLE_MENU_META}>{reason}</span>}</RowLines>- {row.current && <Check size={14} className="shrink-0 text-accent" aria-hidden="true" />}+ {row.current && <Check size={14} className="shrink-0 text-ink" aria-hidden="true" />}</button>);}@@ -249,7 +249,7 @@ export function SimpleModelMenu(props: SimpleModelMenuProps) {{current.meta && <span className={cn(SIMPLE_MENU_META, current.warning && "text-warning")}>{current.meta}</span>}</RowLines>{current.pending && <Loader2 size={14} className="shrink-0 animate-spin text-ink-tertiary" aria-hidden="true" />}- <Check size={14} className="shrink-0 text-accent" aria-hidden="true" />+ <Check size={14} className="shrink-0 text-ink" aria-hidden="true" /></button>)}{menu.follow && (diff --git a/src/components/inbox/InboxPanel.tsx b/src/components/inbox/InboxPanel.tsxindex 49e97ff29a..39e55188f3 100644--- a/src/components/inbox/InboxPanel.tsx+++ b/src/components/inbox/InboxPanel.tsx@@ -3,6 +3,7 @@ import { createPortal } from "react-dom";import { Inbox, Maximize2, Minimize2, Search, X } from "lucide-react";import type { InboxRow } from "../../../shared/inbox";import { cn } from "@/lib/cn";+import { useAdvancedMode } from "@/lib/interface-mode";import { t } from "@/lib/i18n";import { PHONE_LAYOUT, useMediaQuery } from "@/lib/use-media-query";import { closeInbox, readInboxLine, readInboxRow, useInboxPanel, useInboxView, widenInbox } from "@/state/inbox";@@ -19,6 +20,7 @@ export function InboxPanel() {const view = useInboxView();const panel = useInboxPanel();const phone = useMediaQuery(PHONE_LAYOUT);+ const simple = !useAdvancedMode();const { run } = useInboxActions(view);const [now, setNow] = useState(() => Date.now());const [query, setQuery] = useState("");@@ -81,7 +83,7 @@ export function InboxPanel() {) : (<><div className="min-h-0 flex-1 overflow-y-auto">- <label className="m-2.5 flex h-8 items-center gap-2 rounded-lg bg-ink/[0.045] px-2.5 ring-[0.5px] ring-ink/[0.12] focus-within:ring-ink/30">+ <label className="mx-[13px] my-2.5 flex h-8 items-center gap-2 rounded-lg bg-ink/[0.045] px-2.5 ring-[0.5px] ring-ink/[0.12] focus-within:ring-ink/30"><Search size={14} aria-hidden="true" className="shrink-0 text-ink-tertiary" /><input type="search" value={query} onChange={(event) => setQuery(event.target.value)} placeholder={t("inbox.search")} aria-label={t("inbox.search")}className="min-w-0 flex-1 bg-transparent text-[13px] text-ink outline-none placeholder:text-ink-tertiary [&::-webkit-search-cancel-button]:hidden" />@@ -119,8 +121,9 @@ export function InboxPanel() {}return (<aside aria-label={t("inbox.panel.title")} data-inbox-panel="side" data-wide={panel.wide ? "" : undefined} onKeyDown={onKeyDown}- className={cn("animate-panel-in motion-reduce:animate-none flex h-full max-w-full shrink-0 flex-col border-l border-hairline/40 bg-panel max-md:absolute max-md:inset-y-0 max-md:right-0 max-md:z-30",- panel.wide ? "w-[min(640px,60vw)]" : "w-[380px]")}>+ className={cn("animate-panel-in motion-reduce:animate-none flex h-full max-w-full shrink-0 flex-col max-md:absolute max-md:inset-y-0 max-md:right-0 max-md:z-30",+ simple ? "border-l-[0.5px] border-ink/[0.06] bg-app" : "border-l border-hairline/40 bg-panel",+ panel.wide ? "w-[min(640px,60vw)]" : simple ? "w-[320px]" : "w-[380px]")}>{body}</aside>);diff --git a/src/styles.css b/src/styles.cssindex 7a05fece45..381ce2c672 100644--- a/src/styles.css+++ b/src/styles.css@@ -1133,6 +1133,11 @@[data-chat-bubble="simple"] .chat-md > * + * {margin-top: 10px;}+/* No lone last word in a bubble or a reply's paragraphs. */+[data-chat-bubble="simple"],+.chat-md :is(p, li, blockquote) {+ text-wrap: pretty;+}[data-chat-bubble="simple"] .chat-md > * + .md-heading {margin-top: 18px;}@@ -1584,7 +1589,7 @@ body {padding: 48px 16px;}.glass-popup-frame[data-settings-sheet][data-settings-look="simple"] > .glass-popup {- width: min(900px, 100%);+ width: min(860px, 100%);height: min(700px, 100%);border-radius: 12px;}