Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
fix(web): polish interface spacing (#5252)
maria30c96228067b
diff --git a/apps/web/src/components/BranchToolbar.tsx b/apps/web/src/components/BranchToolbar.tsxindex 3a83f5c9a..f7d1856da 100644--- a/apps/web/src/components/BranchToolbar.tsx+++ b/apps/web/src/components/BranchToolbar.tsx@@ -304,7 +304,7 @@ export const BranchToolbar = memo(function BranchToolbar({if (!hasActiveThread || !activeProject) return null;return (- <div className="chat-composer-context-strip -mt-4 mx-auto flex w-[calc(100%-2.75rem)] max-w-[calc(48rem-2.75rem)] items-center gap-2 px-1 pt-5 pb-1">+ <div className="chat-composer-context-strip -mt-4 mx-auto flex w-[calc(100%-2.75rem)] max-w-[calc(48rem-2.75rem)] items-center gap-2 ps-1 pe-2 pt-5 pb-1">{isMobile ? (<MobileRunContextSelectorenvLocked={envLocked}diff --git a/apps/web/src/components/ChatView.tsx b/apps/web/src/components/ChatView.tsxindex 2b9eda1a7..836687af3 100644--- a/apps/web/src/components/ChatView.tsx+++ b/apps/web/src/components/ChatView.tsx@@ -5643,7 +5643,7 @@ function ChatViewContent(props: ChatViewProps) {/>);const panelLayoutControls = (- <div className="workspace-titlebar-controls z-50 gap-1 [-webkit-app-region:no-drag]">+ <div className="workspace-titlebar-controls z-50 mr-px gap-1 [-webkit-app-region:no-drag]">{rightPanelOpen && !shouldUsePlanSidebarSheet ? (<RightPanelMaximizeControlmaximized={rightPanelMaximized}diff --git a/apps/web/src/components/GitActionsControl.tsx b/apps/web/src/components/GitActionsControl.tsxindex 4f2bd1995..20e5c3497 100644--- a/apps/web/src/components/GitActionsControl.tsx+++ b/apps/web/src/components/GitActionsControl.tsx@@ -1693,7 +1693,7 @@ export default function GitActionsControl({render={<Buttonaria-disabled="true"- className="cursor-not-allowed rounded-e-none border-e-0 opacity-64 before:rounded-e-none"+ className="cursor-not-allowed rounded-e-none border-e-0 ps-[8.5px] opacity-64 before:rounded-e-none"size="xs"variant="outline"/>@@ -1715,6 +1715,7 @@ export default function GitActionsControl({<Buttonvariant="outline"size="xs"+ className="ps-[8.5px]"disabled={isGitActionRunning || quickAction.disabled}onClick={runQuickAction}>diff --git a/apps/web/src/components/SidebarV2.tsx b/apps/web/src/components/SidebarV2.tsxindex 18fcc810f..9e86e5fb6 100644--- a/apps/web/src/components/SidebarV2.tsx+++ b/apps/web/src/components/SidebarV2.tsx@@ -2674,7 +2674,7 @@ export default function SidebarV2() {render={<SidebarMenuButtonaria-label="Filter threads by project"- className="min-w-0 flex-1 focus-visible:ring-offset-2 focus-visible:ring-offset-sidebar"+ className="min-w-0 flex-1 ps-[calc(var(--sidebar-row-content-inset)-1px)] focus-visible:ring-offset-2 focus-visible:ring-offset-sidebar"/>}>@@ -2765,7 +2765,7 @@ export default function SidebarV2() {</SidebarGroup>}>- <SidebarGroup className="px-[var(--sidebar-content-inset)] pb-1 pt-0">+ <SidebarGroup className="ps-[calc(var(--sidebar-content-inset)+1px)] pe-[var(--sidebar-content-inset)] pb-1 pt-0">{isSearchingThreads ? (threadSearchResults.length > 0 ? (<TooltipProviderdiff --git a/apps/web/src/components/chat/ChatComposer.tsx b/apps/web/src/components/chat/ChatComposer.tsxindex e92ecd497..c26f52cbc 100644--- a/apps/web/src/components/chat/ChatComposer.tsx+++ b/apps/web/src/components/chat/ChatComposer.tsx@@ -3104,7 +3104,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps){/* Bottom toolbar */}{isComposerCollapsedMobile ? null : activePendingApproval ? (- <div className="flex items-center justify-end gap-2 px-2.5 pb-2.5 sm:px-3 sm:pb-3">+ <div className="flex items-center justify-end gap-2 px-3 pb-3 sm:px-4 sm:pb-4"><ComposerPendingApprovalActionsrequestId={activePendingApproval.requestId}isResponding={respondingRequestIds.includes(activePendingApproval.requestId)}@@ -3116,7 +3116,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)data-chat-composer-footer="true"data-chat-composer-footer-compact={isComposerFooterCompact ? "true" : "false"}className={cn(- "flex min-w-0 flex-nowrap items-center justify-between gap-2 overflow-visible px-2.5 pb-2.5 sm:px-3 sm:pb-3",+ "flex min-w-0 flex-nowrap items-center justify-between gap-2 overflow-visible px-3 pb-3 sm:px-4 sm:pb-4",pendingUserInputs.length > 0 && "pt-2",isComposerFooterCompact ? "gap-1.5" : "gap-2 sm:gap-0",showMobilePendingAnswerActions && "hidden sm:flex",@@ -3145,6 +3145,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)instanceEntries={providerInstanceEntries}keybindings={keybindings}modelOptionsByInstance={modelOptionsByInstance}+ triggerClassName="-ms-px ps-0"terminalOpen={terminalOpen}open={isComposerModelPickerOpen}{...(composerProviderState.modelPickerIconClassNamediff --git a/apps/web/src/components/chat/ContextWindowMeter.tsx b/apps/web/src/components/chat/ContextWindowMeter.tsxindex 4223ce862..d23448247 100644--- a/apps/web/src/components/chat/ContextWindowMeter.tsx+++ b/apps/web/src/components/chat/ContextWindowMeter.tsx@@ -21,7 +21,7 @@ export function ContextWindowMeter(props: {const normalizedPercentage = Math.max(0, Math.min(100, usage.usedPercentage ?? 0));const radius = 9.75;const circumference = 2 * Math.PI * radius;- const dashOffset = circumference - (normalizedPercentage / 100) * circumference;+ const dashOffset = circumference * (1 - normalizedPercentage / 100);const totalProcessedTokens = usage.totalProcessedTokens ?? null;const showTotalProcessed = totalProcessedTokens !== null && totalProcessedTokens > 0;const isOverloaded = normalizedPercentage > 90;@@ -73,7 +73,7 @@ export function ContextWindowMeter(props: {strokeLinecap="round"strokeDasharray={circumference}strokeDashoffset={dashOffset}- className="transition-[stroke-dashoffset] duration-500 ease-out motion-reduce:transition-none"+ className="transition-[stroke-dashoffset,stroke] duration-500 ease-out motion-reduce:transition-none"/></svg></span>@@ -84,9 +84,10 @@ export function ContextWindowMeter(props: {tooltipStyleside="top"align="end"- className="dropdown-glass w-64 max-w-none border-0! bg-secondary! p-0 shadow-none! before:hidden"+ viewportClassName="p-0"+ className="w-64 max-w-none text-left whitespace-normal">- <div className="flex flex-col gap-2 p-3">+ <div className="flex flex-col gap-2 p-[var(--floating-content-inset)]"><div className="flex items-center justify-between gap-3"><div className="font-medium text-muted-foreground text-xs">Context Window</div>{usage.maxTokens !== null && usedPercentage ? (diff --git a/apps/web/src/components/chat/OpenInPicker.tsx b/apps/web/src/components/chat/OpenInPicker.tsxindex de5a2f7cf..8b7a96880 100644--- a/apps/web/src/components/chat/OpenInPicker.tsx+++ b/apps/web/src/components/chat/OpenInPicker.tsx@@ -260,6 +260,7 @@ export const OpenInPicker = memo(function OpenInPicker({<Group aria-label="Open in editor"><Buttonaria-label={compact ? "Open file in preferred editor" : undefined}+ className="ps-[8.5px]"size="xs"variant="outline"disabled={!preferredEditor || !openInCwd}diff --git a/apps/web/src/components/settings/SettingsSidebarNav.tsx b/apps/web/src/components/settings/SettingsSidebarNav.tsxindex d9d381c02..b7ca9afcf 100644--- a/apps/web/src/components/settings/SettingsSidebarNav.tsx+++ b/apps/web/src/components/settings/SettingsSidebarNav.tsx@@ -248,6 +248,7 @@ export function SettingsSidebarNav({ pathname }: { pathname: string }) {</p>) : null}<SidebarMenu+ className="ps-px"id={isSearching && hasResults ? "settings-search-results" : undefined}role={isSearching && hasResults ? "listbox" : undefined}aria-label={isSearching && hasResults ? "Settings search results" : undefined}