Skip to content

Commit

Permalink
fix: Fix the documentation to not show the mermaid tooltip clipping a…
Browse files Browse the repository at this point in the history
…t the top of each page with an inheritance diagram (#354)
  • Loading branch information
nfelt14 authored Nov 22, 2024
1 parent 053f735 commit 644396b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions docs/_static/css/theme_overrides.css
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,8 @@ li:has(> a[href^="gen_"]),
li:has(> a[href*="/gen_"]) {
display: none;
}

/* Remove the mermaidTooltip */
.mermaidTooltip {
display: none !important;
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
{% endfor %}
</div>
<script>
var diagram = document.getElementById('mermaid-diagram-{{ class.path }}');
let diagram = document.getElementById('mermaid-diagram-{{ class.path }}');
diagram.innerHTML = diagram.innerHTML.replace(/click ([\w.]+) href "" "\1"/g, function(match, nodeID, offset) {
try {
const link = document.getElementById("mermaid-link-" + nodeID).href;
Expand Down

0 comments on commit 644396b

Please sign in to comment.