B: Fix react-flow attribution styling
This commit is contained in:
parent
296e740cc7
commit
d3e9e0eadd
|
@ -350,6 +350,8 @@ function OssFlow({ isModified, setIsModified }: OssFlowProps) {
|
||||||
[]
|
[]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
// proOptions={{ hideAttribution: true }}
|
||||||
|
|
||||||
const graph = useMemo(
|
const graph = useMemo(
|
||||||
() => (
|
() => (
|
||||||
<ReactFlow
|
<ReactFlow
|
||||||
|
@ -358,7 +360,6 @@ function OssFlow({ isModified, setIsModified }: OssFlowProps) {
|
||||||
onNodesChange={handleNodesChange}
|
onNodesChange={handleNodesChange}
|
||||||
onEdgesChange={onEdgesChange}
|
onEdgesChange={onEdgesChange}
|
||||||
onNodeDoubleClick={handleNodeDoubleClick}
|
onNodeDoubleClick={handleNodeDoubleClick}
|
||||||
proOptions={{ hideAttribution: true }}
|
|
||||||
fitView
|
fitView
|
||||||
nodeTypes={OssNodeTypes}
|
nodeTypes={OssNodeTypes}
|
||||||
maxZoom={2}
|
maxZoom={2}
|
||||||
|
|
|
@ -64,6 +64,14 @@
|
||||||
cursor: default;
|
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) {
|
:is(.react-flow__node-input, .react-flow__node-synthesis) {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user