mirror of
https://github.com/kennethreitz/kjvstudy.org.git
synced 2026-06-05 23:00:16 +00:00
Fix cross-references showing duplicate tooltips
Cross-reference links were showing both their own CSS tooltip and the JavaScript verse tooltip simultaneously, creating a cluttered experience. Changes: - Added .cross-references-section class to cross-references container - Updated JavaScript to skip all links inside .cross-references-section - Cross-ref links now only show their own CSS-based tooltip This ensures cross-references show only one tooltip with the verse preview, not multiple overlapping tooltips. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1839,6 +1839,9 @@
|
||||
// Skip links in concordance results (verse text already shown inline)
|
||||
if (target.closest('.occurrence-reference') || target.closest('.occurrence')) return;
|
||||
|
||||
// Skip links in cross-references section (has its own CSS tooltip system)
|
||||
if (target.closest('.cross-references-section')) return;
|
||||
|
||||
var verseInfo = parseVerseUrl(target.pathname + target.hash);
|
||||
if (!verseInfo) return;
|
||||
|
||||
|
||||
@@ -396,7 +396,7 @@
|
||||
</section>
|
||||
|
||||
{% if cross_references %}
|
||||
<div>
|
||||
<div class="cross-references-section">
|
||||
<h2>Cross References</h2>
|
||||
<p>Related verses that illuminate this passage (hover to preview):</p>
|
||||
<ul style="max-width: 60%; list-style: none; padding: 0;">
|
||||
|
||||
Reference in New Issue
Block a user