Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Merge remote-tracking branch 'origin/main' into train/nov20-all

milind-soni71616ea0252c
diff --cc DESIGN.md
index c5023e6f25,07b92aa964..fbe7160db9
--- a/DESIGN.md
+++ b/DESIGN.md
@@@ -141,11 -153,11 +153,11 @@@ element's job and never a pixel value
|---|---|---|
| Buttons, pills, chips, avatars | full | the button and chip classes, `rounded-full` |
| Menu rows | 6px | `rounded-md` |
- | Fields, controls, sidebar rows | 8px | `rounded-lg` |
- | Cards, menus, popovers | 12px | `rounded-xl` |
+ | Fields, controls | 8px | `rounded-lg` |
+ | Cards, menus, popovers, sidebar rows and pinned bots | 12px | `rounded-xl` |
| Dialogs | 14px | `.ui-modal` |
| Bubbles, cards in the transcript | 18px | `rounded-4xl` |
-| Composer | 22px (18px once it wraps) | set by the composer |
+| Composer | 22px (18px once it wraps, and always in Advanced mode, whose field sits above a footer row) | set by the composer |
| Window panes | 0 | |
- **No in-between values** (`rounded-[10px]`, `rounded-[14px]`). Pick the step
diff --cc src/components/Composer.tsx
index f939bb353e,832bb4364b..93af70336b
--- a/src/components/Composer.tsx
+++ b/src/components/Composer.tsx
@@@ -776,9 -776,9 +776,9 @@@ export function Composer(
<div
aria-hidden
data-composer-backdrop
- className={cn("pointer-events-none absolute -left-5 -right-5 bg-app", advanced ? "-bottom-3 top-1/2" : cn("top-0", simpleDock ? "-bottom-4" : "-bottom-3"))}
+ className={cn("pointer-events-none absolute -left-4 -right-4 bg-app", advanced ? "-bottom-3 top-1/2" : cn("top-0", simpleDock ? "-bottom-4" : "-bottom-3"))}
/>
- <div ref={shellRef} data-tour="composer" data-look="composer" data-multiline={multiline ? "" : undefined} className={cn("@container/composer relative z-[1]", singleRow ? "flex items-end gap-2" : simpleDock ? cn(SIMPLE_COMPOSER, multiline ? "rounded-[18px]" : "rounded-[22px]") : cn("rounded-2xl px-2 py-1.5", ELEVATED_FLOAT))}>
+ <div ref={shellRef} data-tour="composer" data-look="composer" data-multiline={multiline ? "" : undefined} className={cn("@container/composer relative z-[1]", singleRow ? "flex items-end gap-2" : simpleDock ? cn(SIMPLE_COMPOSER, multiline ? "rounded-[18px]" : "rounded-[22px]") : cn("rounded-[18px] px-2 pb-2 pt-2.5", ELEVATED_FLOAT))}>
{singleRow && !locked && (
<div className="flex shrink-0 items-center">
<PhonePlus
@@@ -956,10 -970,10 +956,10 @@@
)}
title={recording ? t("composer.dictation.stopHint") : t("composer.dictation.hint")}
>
- <Mic size={16} strokeWidth={1.75} absoluteStrokeWidth className="[&_rect]:fill-current" />
+ <Mic size={16} className="[&_rect]:fill-current" />
</button>
)}
- {callShown && bot && !group && <CallButton bot={bot} placement="composer" fill={advanced || singleRow ? undefined : slot.fill} ink={slot.ink} inverse={singleRow} />}
+ {callShown && bot && !group && <CallButton bot={bot} placement="composer" fill={advanced || singleRow ? undefined : slot.fill} ink={slot.ink} inverse={singleRow} modeMenu={!stacked} />}
{callShown && group && !advanced && <GroupCallButton group={group} members={members ?? []} placement="composer" fill={slot.fill} ink={slot.ink} />}
{hasContent && !locked && (
<ComposerSendButton compact={simpleDock} waits={busy && !steersNow} label={sendNames.label} title={sendNames.title} look={slot.button}
diff --cc src/components/ModelPicker.tsx
index 918ab1acc2,f1853da0ea..fc6e359e9f
--- a/src/components/ModelPicker.tsx
+++ b/src/components/ModelPicker.tsx
@@@ -606,8 -606,8 +606,8 @@@ export function ModelPicker(
<button
{...triggerProps}
className={cn(
- "group flex items-center gap-1.5 rounded-full py-1 pl-2 pr-2.5 text-[13px] text-ink disabled:cursor-not-allowed",
- cn("group flex items-center gap-1.5 rounded-full pl-2 pr-2.5 text-[13px] text-ink disabled:cursor-not-allowed", contained ? "py-1" : "h-9"),
- contained
++ cn("group flex items-center gap-1.5 rounded-full pl-2 pr-2.5 text-[13px] text-ink disabled:cursor-not-allowed", contained || quiet ? "py-1" : "h-9"),
+ contained || quiet
? "hover:bg-ink/[0.06] aria-expanded:bg-ink/[0.08] disabled:opacity-50 disabled:hover:bg-transparent"
: cn(ELEVATED_FLOAT, ELEVATED_HOVER, "disabled:text-ink-tertiary disabled:hover:bg-composer"),
!contained && active && !showActiveAccount && cn(COMPACT_SQUARE, USAGE_WARN_WIDENS),