feat: add topology view
This commit is contained in:
@@ -2304,4 +2304,105 @@ p {
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
}
|
||||
}
|
||||
|
||||
/* Topology View Styles */
|
||||
#topology-view {
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
min-height: 100vh; /* Ensure full viewport height */
|
||||
}
|
||||
|
||||
#topology-graph-container {
|
||||
background: rgba(0, 0, 0, 0.2);
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
|
||||
min-height: 100%;
|
||||
height: 100vh; /* Use full viewport height */
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
overflow: hidden;
|
||||
border: 1px solid rgba(255, 255, 255, 0.1);
|
||||
}
|
||||
|
||||
#topology-graph-container svg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#topology-graph-container .loading,
|
||||
#topology-graph-container .error,
|
||||
#topology-graph-container .no-data {
|
||||
text-align: center;
|
||||
color: rgba(255, 255, 255, 0.7);
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
#topology-graph-container .error {
|
||||
color: #f87171;
|
||||
}
|
||||
|
||||
#topology-graph-container .no-data {
|
||||
color: rgba(255, 255, 255, 0.5);
|
||||
}
|
||||
|
||||
/* Node and link styles for the graph */
|
||||
.node circle {
|
||||
cursor: pointer;
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
|
||||
.node text {
|
||||
pointer-events: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.node:hover circle {
|
||||
stroke-width: 3;
|
||||
stroke: #60a5fa;
|
||||
}
|
||||
|
||||
/* Legend styles */
|
||||
.legend text {
|
||||
pointer-events: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.legend line {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* Graph container enhancements */
|
||||
#members-graph-container {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#members-graph-container svg {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
/* Loading and error states */
|
||||
.loading, .error, .no-data {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: 100%;
|
||||
font-size: 1.1rem;
|
||||
color: rgba(255, 255, 255, 0.7);
|
||||
}
|
||||
|
||||
.loading div {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.error div {
|
||||
color: #f87171;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.no-data div {
|
||||
color: rgba(255, 255, 255, 0.5);
|
||||
text-align: center;
|
||||
}
|
||||
Reference in New Issue
Block a user