fix(site): make the tooltip hint look like a hint, not a link

The tooltip ignores the mouse and follows the cursor, so its hint is now plain muted text about the topic instead of an accent-colored link-like line.
This commit is contained in:
Meysam Parvizi
2026-10-10 01:58:55 +02:00
parent 2c70f347de
commit ad4a5406d9
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -294,7 +294,7 @@ export function createMapView({ root, plan, data, build, onSelect }) {
topic.areas.length ? h('div', { class: 'tip-areas' }, areaDots(topic.areas), areaLabel(topic.areas)) : null,
h('div', { class: 'tip-meta' }, [importance ? IMPORTANCE[importance] : null, plural(topic.total, 'resource'),
topic.links && topic.links.length ? `${topic.links.length} connected` : null].filter(Boolean).join(' · ')),
h('div', { class: 'tip-hint' }, 'Click for details and resources'),
h('div', { class: 'tip-hint' }, 'Click this topic to open its details'),
].filter(Boolean));
tip.hidden = false;
moveTip(e);
+4 -3
View File
@@ -426,10 +426,11 @@ button {
}
.tip-hint {
margin-top: 4px;
color: var(--accent);
margin-top: 6px;
padding-top: 6px;
border-top: 1px solid var(--border);
color: var(--muted);
font-size: 12px;
font-weight: 600;
}
/* Outline view */