فهرست منبع

nodeblock above all nodelabels

jusrhee 5 سال پیش
والد
کامیت
e882669f16

+ 1 - 0
dashboard/src/main/home/dashboard/expanded-chart/graph/GraphDisplay.tsx

@@ -479,6 +479,7 @@ const ButtonSection = styled.div`
   right: 15px;
   right: 15px;
   display: flex;
   display: flex;
   align-items: center;
   align-items: center;
+  z-index: 999;
 `;
 `;
 
 
 const ExpandButton = styled.div`
 const ExpandButton = styled.div`

+ 3 - 1
dashboard/src/main/home/dashboard/expanded-chart/graph/Node.tsx

@@ -72,6 +72,7 @@ const Kind = styled.div`
   white-space: nowrap;
   white-space: nowrap;
   overflow: hidden;
   overflow: hidden;
   text-overflow: ellipsis;
   text-overflow: ellipsis;
+  z-index: 0;
 `;
 `;
 
 
 const NodeLabel = styled.div`
 const NodeLabel = styled.div`
@@ -86,6 +87,7 @@ const NodeLabel = styled.div`
   white-space: nowrap;
   white-space: nowrap;
   overflow: hidden;
   overflow: hidden;
   text-overflow: ellipsis;
   text-overflow: ellipsis;
+  z-index: 0;
 `;
 `;
 
 
 const NodeBlock = styled.div`
 const NodeBlock = styled.div`
@@ -96,6 +98,7 @@ const NodeBlock = styled.div`
   align-items: center;
   align-items: center;
   justify-content: center;
   justify-content: center;
   border-radius: 100px;
   border-radius: 100px;
+  z-index: 100;
   cursor: pointer;
   cursor: pointer;
   :hover {
   :hover {
     background: #555556;
     background: #555556;
@@ -118,7 +121,6 @@ const StyledNode: any = styled.div.attrs((props: NodeType) => ({
   box-shadow: ${(props: any) => props.isActive ? '0 0 10px #ffffff66' : '0px 0px 10px 2px #00000022'};
   box-shadow: ${(props: any) => props.isActive ? '0 0 10px #ffffff66' : '0px 0px 10px 2px #00000022'};
   color: #ffffff22;
   color: #ffffff22;
   border-radius: 100px;
   border-radius: 100px;
-  z-index: 3;
   display: flex;
   display: flex;
   flex-direction: column;
   flex-direction: column;
   align-items: center;
   align-items: center;

+ 2 - 2
dashboard/src/shared/rosettaStone.tsx

@@ -8,7 +8,7 @@ export const kindToIcon: any = {
 }
 }
 
 
 export const edgeColors: any = {
 export const edgeColors: any = {
-  'LabelRel': '#949EFF',
+  'LabelRel': '#32a85f',
   'ControlRel': '#fcb603',
   'ControlRel': '#fcb603',
-  'SpecRel': '#32a852'
+  'SpecRel': '#949EFF'
 };
 };