From db21846035f6162250c6321ed478fb2796811590 Mon Sep 17 00:00:00 2001 From: Max Mykal Date: Fri, 3 Oct 2025 15:11:46 -0700 Subject: [PATCH 1/2] fix layout update --- web/common/src/components/Lineage/LineageLayout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/common/src/components/Lineage/LineageLayout.tsx b/web/common/src/components/Lineage/LineageLayout.tsx index 7340fa2656..2ad31c4b9e 100644 --- a/web/common/src/components/Lineage/LineageLayout.tsx +++ b/web/common/src/components/Lineage/LineageLayout.tsx @@ -348,7 +348,7 @@ function LineageLayoutBase< }) } } - }, [currentNode?.id, setSelectedNodeId, nodes, setCenter]) + }, [currentNode?.id, setSelectedNodeId, setCenter]) return ( Date: Fri, 3 Oct 2025 15:34:17 -0700 Subject: [PATCH 2/2] update modelname --- web/common/src/components/ModelName/ModelName.css | 2 ++ web/common/src/components/ModelName/ModelName.tsx | 2 +- web/common/tailwind.base.config.js | 4 ++++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/web/common/src/components/ModelName/ModelName.css b/web/common/src/components/ModelName/ModelName.css index 42e11a061b..8615f3c6df 100644 --- a/web/common/src/components/ModelName/ModelName.css +++ b/web/common/src/components/ModelName/ModelName.css @@ -14,4 +14,6 @@ --color-model-name-copy-icon: var(--color-neutral-600); --color-model-name-copy-icon-hover: var(--color-neutral-100); + --color-model-name-copy-icon-background: var(--color-neutral-100); + --color-model-name-copy-icon-background-hover: var(--color-neutral-200); } diff --git a/web/common/src/components/ModelName/ModelName.tsx b/web/common/src/components/ModelName/ModelName.tsx index 83013d8108..7c7f50789d 100644 --- a/web/common/src/components/ModelName/ModelName.tsx +++ b/web/common/src/components/ModelName/ModelName.tsx @@ -200,7 +200,7 @@ export const ModelName = React.forwardRef( size="2xs" variant="transparent" text={name} - className="ml-2 w-6 hover:text-model-name-copy-icon-hover active:text-model-name-copy-icon-hover" + className="ml-2 w-6 hover:text-model-name-copy-icon-hover active:text-model-name-copy-icon-hover bg-model-name-copy-icon-background hover:bg-model-name-copy-icon-background-hover active:bg-model-name-copy-icon-background-hover" > {copied => copied ? ( diff --git a/web/common/tailwind.base.config.js b/web/common/tailwind.base.config.js index 49354591cc..8f385b53dc 100644 --- a/web/common/tailwind.base.config.js +++ b/web/common/tailwind.base.config.js @@ -71,6 +71,10 @@ export default { model: 'var(--color-model-name-model)', 'copy-icon': 'var(--color-model-name-copy-icon)', 'copy-icon-hover': 'var(--color-model-name-copy-icon-hover)', + 'copy-icon-background': + 'var(--color-model-name-copy-icon-background)', + 'copy-icon-background-hover': + 'var(--color-model-name-copy-icon-background-hover)', }, badge: { background: 'var(--color-badge-background)',