From 6b397003b389a07833e6a23c569d9276af74cc2d Mon Sep 17 00:00:00 2001 From: Ivan <8611739+IRBorisov@users.noreply.github.com> Date: Wed, 11 Sep 2024 21:25:48 +0300 Subject: [PATCH] B: Fix react-flow attribution styling --- .../frontend/src/pages/OssPage/EditorOssGraph/OssFlow.tsx | 1 - rsconcept/frontend/src/styling/overrides.css | 8 ++++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/rsconcept/frontend/src/pages/OssPage/EditorOssGraph/OssFlow.tsx b/rsconcept/frontend/src/pages/OssPage/EditorOssGraph/OssFlow.tsx index 1bb5da6f..1eb2d3c6 100644 --- a/rsconcept/frontend/src/pages/OssPage/EditorOssGraph/OssFlow.tsx +++ b/rsconcept/frontend/src/pages/OssPage/EditorOssGraph/OssFlow.tsx @@ -358,7 +358,6 @@ function OssFlow({ isModified, setIsModified }: OssFlowProps) { onNodesChange={handleNodesChange} onEdgesChange={onEdgesChange} onNodeDoubleClick={handleNodeDoubleClick} - proOptions={{ hideAttribution: true }} fitView nodeTypes={OssNodeTypes} maxZoom={2} diff --git a/rsconcept/frontend/src/styling/overrides.css b/rsconcept/frontend/src/styling/overrides.css index 2544d996..11bc1268 100644 --- a/rsconcept/frontend/src/styling/overrides.css +++ b/rsconcept/frontend/src/styling/overrides.css @@ -64,6 +64,14 @@ cursor: default; } +.react-flow__attribution { + background-color: transparent; + color: var(--cl-fg-60); + .dark & { + color: var(--cd-fg-60); + } +} + :is(.react-flow__node-input, .react-flow__node-synthesis) { cursor: pointer;