mirror of
https://github.com/AykutSarac/jsoncrack.com.git
synced 2025-02-04 01:32:54 +08:00
feat: add node hover stroke color
This commit is contained in:
parent
4a604ca70e
commit
d2896c5ec1
@ -41,6 +41,12 @@ const CustomNodeWrapper = (nodeProps: NodeProps<NodeData["data"]>) => {
|
||||
onClick={handleNodeClick as any}
|
||||
animated={false}
|
||||
label={null as any}
|
||||
onEnter={ev => {
|
||||
ev.currentTarget.style.stroke = "#3B82F6";
|
||||
}}
|
||||
onLeave={ev => {
|
||||
ev.currentTarget.style.stroke = colorScheme === "dark" ? "#424242" : "#BCBEC0";
|
||||
}}
|
||||
style={{
|
||||
fill: colorScheme === "dark" ? "#292929" : "#ffffff",
|
||||
stroke: colorScheme === "dark" ? "#424242" : "#BCBEC0",
|
||||
|
Loading…
x
Reference in New Issue
Block a user