The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(ui): clamp table ID cells to the cell box instead of a fixed 15ch
Yuneng Jiang2756695258f7
diff --git a/ui/litellm-dashboard/src/components/shared/table_cells/id_cell.test.tsx b/ui/litellm-dashboard/src/components/shared/table_cells/id_cell.test.tsxindex 1a87f17d50b..41da4519018 100644--- a/ui/litellm-dashboard/src/components/shared/table_cells/id_cell.test.tsx+++ b/ui/litellm-dashboard/src/components/shared/table_cells/id_cell.test.tsx@@ -28,10 +28,18 @@ describe("IdCell", () => {expect(el.tagName).toBe("SPAN");expect(el.className).toContain("bg-blue-50");expect(el.className).toContain("font-mono");- expect(el.className).toContain("max-w-[15ch]");+ expect(el.className).toContain("max-w-full");expect(el.className).toContain("truncate");});+ it("clamps to the containing cell rather than a fixed character count", () => {+ render(<IdCell value="ecc1869c-6231-4380-a56d-1a0be457477d" />);+ const el = screen.getByText("ecc1869c-6231-4380-a56d-1a0be457477d");+ expect(el.className).not.toMatch(/max-w-\[\d+(ch|rem|px)\]/);+ expect(el.className).toContain("inline-block");+ expect(el.className).toContain("max-w-full");+ });+it("renders plain mono text without pill styling for the plain variant", () => {render(<IdCell value="req-123" variant="plain" />);const el = screen.getByText("req-123");diff --git a/ui/litellm-dashboard/src/components/shared/table_cells/id_cell.tsx b/ui/litellm-dashboard/src/components/shared/table_cells/id_cell.tsxindex 6fbd2e2f9ed..c8b75ee96e9 100644--- a/ui/litellm-dashboard/src/components/shared/table_cells/id_cell.tsx+++ b/ui/litellm-dashboard/src/components/shared/table_cells/id_cell.tsx@@ -54,7 +54,7 @@ export function IdCell({const classes = cn(VARIANT_CLASS[variant].base,clickable && VARIANT_CLASS[variant].clickable,- truncate && "block max-w-[15ch] truncate",+ truncate && "inline-block max-w-full truncate",disabled && "opacity-50",className,);