A desktop coding agent with free access to frontier models.
TypeScript
fix(composer): keep the settings on one row
ogsamrat56b6f5b198de
diff --git a/apps/app/src/react-app/domains/session/surface/composer/composer.tsx b/apps/app/src/react-app/domains/session/surface/composer/composer.tsxindex d4e2213d..d33e5c30 100644--- a/apps/app/src/react-app/domains/session/surface/composer/composer.tsx+++ b/apps/app/src/react-app/domains/session/surface/composer/composer.tsx@@ -1446,7 +1446,7 @@ export const ReactSessionComposer = memo(function ReactSessionComposer(props: Co/>{/* Respond to the pane width, including desktop split views. */}- <div data-composer-toolbar className="mt-2 grid grid-cols-[minmax(0,1fr)_auto] items-center gap-x-1.5 gap-y-2 @min-[560px]/composer:flex">+ <div data-composer-toolbar className="mt-2 grid grid-cols-[minmax(0,1fr)_auto] items-center gap-x-1.5 gap-y-2 @min-[400px]/composer:flex"><div className="contents"><div className="col-start-1 row-start-2 flex shrink-0 items-center gap-1.5"><input@@ -1722,13 +1722,15 @@ export const ReactSessionComposer = memo(function ReactSessionComposer(props: Cotitle={props.compacting ? t("session.compact_context_running") : t("app.compact_command_desc")}>{props.compacting ? <LoaderCircle size={13} className="animate-spin" /> : <RefreshCw size={13} />}- <span>{props.compacting ? t("session.compact_context_running") : t("session.compact_context")}</span>+ <span className="hidden @min-[900px]/composer:inline">{props.compacting ? t("session.compact_context_running") : t("session.compact_context")}</span></button>) : null}</div>- <div data-composer-settings className="col-span-2 row-start-1 flex min-w-0 flex-wrap items-center gap-1 border-b border-dls-border pb-2 @min-[560px]/composer:flex-1 @min-[560px]/composer:border-0 @min-[560px]/composer:pb-0">+ {/* One row: the settings never wrap; labels give way to icons (with+ tooltips) as the composer narrows, so the model selector keeps its room. */}+ <div data-composer-settings className="col-span-2 row-start-1 flex min-w-0 flex-nowrap items-center gap-1 border-b border-dls-border pb-2 @min-[400px]/composer:flex-1 @min-[400px]/composer:border-0 @min-[400px]/composer:pb-0">{/* Agent picker (#2101/#1971). Only shown once a non-defaultagent is selected. Switching back to Default agent lives inthis menu and in the + tools menu. */}diff --git a/apps/app/src/react-app/domains/session/surface/composer/full-permissions-toggle.tsx b/apps/app/src/react-app/domains/session/surface/composer/full-permissions-toggle.tsxindex 1acfc8da..56d2b3f3 100644--- a/apps/app/src/react-app/domains/session/surface/composer/full-permissions-toggle.tsx+++ b/apps/app/src/react-app/domains/session/surface/composer/full-permissions-toggle.tsx@@ -86,7 +86,8 @@ function FullPermissionsSwitch(props: { client: ApprovalsClient; workspaceId: st}>{busy ? <LoaderCircle className="size-4 animate-spin" /> : full ? <ShieldAlert className="size-4" /> : <ShieldCheck className="size-4" />}- <span className="whitespace-nowrap">Full permissions</span>+ {/* An icon (its label in the tooltip and aria-label) until the composer is wide enough. */}+ <span className="hidden whitespace-nowrap @min-[760px]/composer:inline">Full permissions</span></TooltipTrigger><TooltipContent>{hint}</TooltipContent></Tooltip>