Graph: highlight a selected node's links; nav: Connect only when signed out
Selecting a node highlights every edge into and out of it, with their labels and the boxes at the far ends, and dims the rest. The Connect menu item is shown only while signed out; when signed in, the name in the menu links to the connection page so Disconnect stays reachable. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
11c9483a88
commit
44e4eb75c9
6 files changed
+133
-16
No files matched your search
+21
-6
@@ -173,7 +173,6 @@ main:focus {
|
||||
align-items: center;
|
||||
margin-left: auto;
|
||||
padding: 0 var(--s3);
|
||||
color: var(--ink-faint);
|
||||
font-family: var(--mono);
|
||||
font-size: var(--text-sm);
|
||||
}
|
||||
@@ -182,10 +181,6 @@ main:focus {
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.shell > nav .whoami + .connect {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.shell main {
|
||||
max-width: var(--measure);
|
||||
margin: 0 auto;
|
||||
@@ -888,6 +883,21 @@ td:last-child button + button {
|
||||
box-shadow: 0 0 0 2px var(--accent);
|
||||
}
|
||||
|
||||
/* With a node selected, its own links stand out and everything else steps back. */
|
||||
.gnode-linked .gnode-card {
|
||||
box-shadow: 0 0 0 1px var(--accent);
|
||||
}
|
||||
|
||||
.gnode-dim,
|
||||
.edge-dim {
|
||||
opacity: 0.25;
|
||||
}
|
||||
|
||||
.react-flow__edge.edge-linked .react-flow__edge-path {
|
||||
stroke: var(--accent);
|
||||
stroke-width: 2.5;
|
||||
}
|
||||
|
||||
/* Handles anchor the edges but aren't interactive. */
|
||||
.gnode-card .react-flow__handle {
|
||||
width: 1px;
|
||||
@@ -1427,11 +1437,16 @@ button.danger-solid:hover:not(:disabled) {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.edge-label-selected {
|
||||
.edge-label-selected,
|
||||
.edge-label-linked {
|
||||
border-color: var(--accent);
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.edge-label-dim {
|
||||
opacity: 0.25;
|
||||
}
|
||||
|
||||
/* Inline "Grant access" form inside the secret detail card. */
|
||||
.grant-here {
|
||||
max-width: none;
|
||||
|
||||
Reference in new issue
Block a user