Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
fix(bot-panel): put the ellipsis on the settings row value text (#6315)
Bugfixer 2c3d668927a56
diff --git a/src/components/bot-panel/rows.test.ts b/src/components/bot-panel/rows.test.tsindex 0f399722cb..5f7d1afb4d 100644--- a/src/components/bot-panel/rows.test.ts+++ b/src/components/bot-panel/rows.test.ts@@ -11,3 +11,8 @@ it("keeps room for the title on a phone and lets a long value shrink instead", (expect(classes(html, "span")).toContain("min-w-0");expect(classes(html, "span")).not.toContain("shrink-0");});++it("puts the ellipsis on the value text itself, so it also shows in Firefox", () => {+ const html = renderToStaticMarkup(createElement(NavRow, { title: "Apps it can use", value: "google-calendar, gmail, notion, slack, linear, github", onClick: () => {} }));+ expect(html).toMatch(/<span class="truncate">google-calendar, gmail, notion, slack, linear, github<\/span>/);+});diff --git a/src/components/bot-panel/rows.tsx b/src/components/bot-panel/rows.tsxindex fcb59a4e25..d947741257 100644--- a/src/components/bot-panel/rows.tsx+++ b/src/components/bot-panel/rows.tsx@@ -139,7 +139,7 @@ export function NavRow({ title, hint, value, icon, onClick, drill = true, danger{hint && <div className={hintCls}>{hint}</div>}</div>{value !== undefined && value !== null && value !== "" && (- <span className="inline-flex min-w-0 max-w-[45%] items-center gap-1 truncate text-[13px] text-ink-secondary">{value}</span>+ <span className="inline-flex min-w-0 max-w-[45%] items-center gap-1 text-[13px] text-ink-secondary"><span className="truncate">{value}</span></span>)}{drill && <ChevronRight size={15} className="shrink-0 text-ink-tertiary" aria-hidden="true" />}</button>