diff --git a/src/components/RelationSphere.vue b/src/components/RelationSphere.vue index 648f466..524ef9c 100644 --- a/src/components/RelationSphere.vue +++ b/src/components/RelationSphere.vue @@ -1408,19 +1408,22 @@ defineExpose({ navigate });
@@ -1663,19 +1666,25 @@ defineExpose({ navigate }); display: flex; align-items: center; gap: 6px; padding: 3px 6px; border-radius: 3px; border: 1px solid transparent; background: transparent; text-align: left; width: 100%; font-family: inherit; font-size: 11px; color: var(--ink-mute); + cursor: pointer; user-select: none; } .sp-legend-item:hover { background: var(--rule); } .sp-legend-item.muted { opacity: 0.35; } -.sp-legend-toggle { - display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; - cursor: pointer; border: none; background: transparent; padding: 0; - font: inherit; color: inherit; -} +.sp-legend-item .sp-count { flex-shrink: 0; font-size: 10px; color: var(--ink-faint); } .sp-legend-label { - color: inherit; text-decoration: none; flex: 1; min-width: 0; - overflow: hidden; text-overflow: ellipsis; white-space: nowrap; + flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; +} +.sp-legend-info { + flex-shrink: 0; width: 14px; height: 14px; border-radius: 50%; + display: inline-flex; align-items: center; justify-content: center; + font-size: 9px; line-height: 1; text-decoration: none; + color: var(--ink-faint); border: 1px solid var(--rule); + transition: all 0.15s; +} +.sp-legend-info:hover { + color: var(--ink); border-color: var(--ink-mute); + background: var(--surface); } -.sp-legend-label:hover { text-decoration: underline; } .sp-swatch { width: 18px; height: 2px; flex-shrink: 0; border-radius: 1px; } /* Rake swatch — small bracket icon signaling a PartitiveRelation hyperedge (not a single binary edge). Two parallel solid lines (close-set double)