Open-source Grok Bot alternative with a virtual machine that bots can use
TypeScript ai-agentsclaude-codecodexcomputer-usedockerelectrongrokgrok-botgrok-bot-alternativeself-hostedtypescript
Chat: shorter comments on a table reply's width
luishron123cf2ee6832c86
diff --git a/src/components/ReplyBlocks.tsx b/src/components/ReplyBlocks.tsxindex b0be774b34..3bb7773765 100644--- a/src/components/ReplyBlocks.tsx+++ b/src/components/ReplyBlocks.tsx@@ -5,8 +5,7 @@ import type { ReplyBlock } from "@/lib/formatted-reply";import { joinedCorners, SIMPLE_BOT_BUBBLE, type BubbleJoin } from "./chat-bubble";/** Simple mode's reply with tables: one bubble holding the prose and each table in order. The bubble may grow to the- * message's card width so a table's columns show. Prose widens the bubble only up to the reading width (its max-width),- * then fills whatever width the tables gave it (its min-width, which outranks max-width). The hover tray sits beside it. */+ * message's card width so a table's columns show, and its prose runs to the same edge. The hover tray sits beside it. */export function ReplyBlocks({ blocks, join, citation, tray, render }: {blocks: readonly ReplyBlock[];join?: BubbleJoin;diff --git a/src/lib/formatted-reply.ts b/src/lib/formatted-reply.tsindex 7961371ed8..27de3b9a81 100644--- a/src/lib/formatted-reply.ts+++ b/src/lib/formatted-reply.ts@@ -13,7 +13,7 @@ export function isFormattedReply(text: string): boolean {}/** A formatted reply reads at prose width; one with a table takes the message's full width so every column shows,- * and its prose runs to the same edge as its widest table (`.chat-wide` in styles.css). */+ * and its prose runs to the same edge as its widest table. */export function formattedReplyWidth(text: string): string {return TABLE_DIVIDER.test(text)? "chat-wide w-full max-w-[var(--chat-card-pct)]"diff --git a/src/styles.css b/src/styles.cssindex 83fc9d5bbf..fb8baa5aa3 100644--- a/src/styles.css+++ b/src/styles.css@@ -1218,9 +1218,8 @@src: local("Noto Sans Hebrew"), local("Arial Hebrew"), local("SF Hebrew");unicode-range: U+0590-05FF, U+FB1D-FB4F;}-/* A reply with a table is as wide as its widest table, and never narrower than the reading width. The prose's- percentage min-width counts for nothing while the reply is measured, so only a table can widen it past the- reading width; once the reply has its width, the same min-width outranks max-width and the prose fills it. */+/* A reply with a table is as wide as its widest table, never narrower than the reading width, and its prose fills it.+ A percentage min-width counts as zero while the reply is measured and outranks max-width afterwards. */.chat-wide .chat-md {width: fit-content;min-width: min(100%, var(--chat-prose-max));