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(
|
||||
() => (
|
||||
<ReactFlow
|
||||
|
@ -358,7 +360,6 @@ function OssFlow({ isModified, setIsModified }: OssFlowProps) {
|
|||
onNodesChange={handleNodesChange}
|
||||
onEdgesChange={onEdgesChange}
|
||||
onNodeDoubleClick={handleNodeDoubleClick}
|
||||
proOptions={{ hideAttribution: true }}
|
||||
fitView
|
||||
nodeTypes={OssNodeTypes}
|
||||
maxZoom={2}
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user