Graph: place capability labels beside the target node (ENB-22)
Edge labels sat at each curve's midpoint, where edges leaving one policy bunch up and overlap. Policy->path edges now use a custom edge that puts a clickable label just before the target, stacked apart when several edges share a target, and the path column is moved right to leave room for longer labels. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b55259c492
commit
0882d35123
4 files changed
+82
-14
No files matched your search
@@ -1316,3 +1316,23 @@ button.danger-solid:hover:not(:disabled) {
|
||||
border-color: transparent;
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
/* Capability label on a policy -> path edge. */
|
||||
.edge-label {
|
||||
position: absolute;
|
||||
pointer-events: all;
|
||||
padding: 1px 6px;
|
||||
background: var(--surface-sunken);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: 4px;
|
||||
color: var(--ink-soft);
|
||||
font-size: 12px;
|
||||
line-height: 1.4;
|
||||
white-space: nowrap;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.edge-label-selected {
|
||||
border-color: var(--accent);
|
||||
color: var(--accent);
|
||||
}
|
||||
Reference in new issue
Block a user