Skip to content

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

fix(model-picker): keep scope labels inside their pills when they wrap

koeria6e7c59a5e1f6
diff --git a/src/components/ModelPicker.tsx b/src/components/ModelPicker.tsx
index 6bc7f512a9..276be45936 100644
--- a/src/components/ModelPicker.tsx
+++ b/src/components/ModelPicker.tsx
@@ -684,7 +684,7 @@ export function ModelPicker({
<div role="group" aria-label={t("model.scope.label")} className="flex gap-1">
{(["thread", "bot"] as const).map((value) => (
<button key={value} type="button" aria-pressed={scope === value} onClick={() => setScope(value)}
- className={cn("h-6 rounded-full px-2.5 text-[12px] leading-4",
+ className={cn("flex min-h-6 items-center rounded-full px-2.5 py-0.5 text-center text-[12px] leading-4",
scope === value ? "bg-ink/[0.08] font-medium text-ink" : "text-ink-secondary hover:bg-ink/[0.06] hover:text-ink")}>
{value === "bot" ? t("model.scope.bot") : t("model.scope.thread")}
</button>