🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
fix(assistant): Markdown tables jump on hover (#19235)
Ben Bachemfb3d1ff79304
diff --git a/web/src/features/in-app-agent/components/InAppAgentExecution.clienttest.tsx b/web/src/features/in-app-agent/components/InAppAgentExecution.clienttest.tsxindex 54686d6987..119996dedb 100644--- a/web/src/features/in-app-agent/components/InAppAgentExecution.clienttest.tsx+++ b/web/src/features/in-app-agent/components/InAppAgentExecution.clienttest.tsx@@ -1,6 +1,7 @@/* eslint-disable no-nested-ternary */import {act,+ cleanup,fireEvent,render,screen,@@ -298,6 +299,7 @@ describe("in-app agent execution", () => {});afterEach(() => {+ cleanup();vi.restoreAllMocks();vi.clearAllMocks();vi.unstubAllGlobals();@@ -1094,6 +1096,7 @@ describe("in-app agent concurrent conversations", () => {});afterEach(() => {+ cleanup();vi.restoreAllMocks();vi.clearAllMocks();vi.unstubAllGlobals();diff --git a/web/src/features/in-app-agent/components/InAppAgentMessage.tsx b/web/src/features/in-app-agent/components/InAppAgentMessage.tsxindex 0ab005c25e..f3cf029429 100644--- a/web/src/features/in-app-agent/components/InAppAgentMessage.tsx+++ b/web/src/features/in-app-agent/components/InAppAgentMessage.tsx@@ -1076,7 +1076,7 @@ const codeCopyVisibilityClass ="pointer-events-none opacity-0 transition-opacity group-hover/code-block:pointer-events-auto group-hover/code-block:opacity-100 group-focus-within/code-block:pointer-events-auto group-focus-within/code-block:opacity-100 focus-visible:pointer-events-auto focus-visible:opacity-100 data-[state=copied]:pointer-events-auto data-[state=copied]:opacity-100 [@media(hover:none)]:pointer-events-auto [@media(hover:none)]:opacity-100";const tableCopyRowClass =- "flex h-0 justify-end overflow-hidden group-hover/table:h-8 group-focus-within/table:h-8 data-[state=copied]:h-8 [@media(hover:none)]:h-8";+ "pointer-events-none absolute right-0 bottom-full z-10 flex h-8 justify-end group-hover/table:pointer-events-auto group-focus-within/table:pointer-events-auto data-[state=copied]:pointer-events-auto [@media(hover:none)]:pointer-events-auto";const tableCopyVisibilityClass ="pointer-events-none mb-1 opacity-0 transition-opacity group-hover/table:pointer-events-auto group-hover/table:opacity-100 group-focus-within/table:pointer-events-auto group-focus-within/table:opacity-100 focus-visible:pointer-events-auto focus-visible:opacity-100 data-[state=copied]:pointer-events-auto data-[state=copied]:opacity-100 [@media(hover:none)]:pointer-events-auto [@media(hover:none)]:opacity-100";@@ -1158,7 +1158,7 @@ function TableBlock({ children }: { children: ReactNode }) {};return (- <div className="group/table max-w-full">+ <div className="group/table relative max-w-full"><divdata-state={isCopied ? "copied" : undefined}className={tableCopyRowClass}