fix: selected node and edge color and width (#3667)
* Fix border node color to use ring in order to not shrink component and to use selected edge color * Updated selected edge width to match selected node width --------- Co-authored-by: Cristhian Zanforlin Lousa <cristhian.lousa@gmail.com>
This commit is contained in:
parent
b2f5a43d06
commit
be3cb833dd
2 changed files with 5 additions and 2 deletions
|
|
@ -151,10 +151,13 @@ body {
|
|||
/* selected */
|
||||
.react-flow__edge.selected .react-flow__edge-path {
|
||||
stroke: var(--selected) !important;
|
||||
stroke-width: 1.5px !important;
|
||||
}
|
||||
|
||||
.react-flow__edge .react-flow__edge-path {
|
||||
stroke: var(--connection) !important;
|
||||
transition: all;
|
||||
transition-duration: 150ms;
|
||||
}
|
||||
|
||||
.ag-react-container {
|
||||
|
|
|
|||
|
|
@ -65,9 +65,9 @@ export default function NodeStatus({
|
|||
|
||||
const getBaseBorderClass = (selected) => {
|
||||
let className = selected
|
||||
? "border border-2 border-node-selected hover:shadow-node"
|
||||
? "border ring ring-[0.5px] ring-selected border-selected hover:shadow-node"
|
||||
: "border hover:shadow-node";
|
||||
let frozenClass = selected ? "border-ring-frozen" : "border-frozen";
|
||||
let frozenClass = selected ? "outline-ring-frozen" : "outline-frozen";
|
||||
return frozen ? frozenClass : className;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue