AemieJ commented on a change in pull request #446:
URL: https://github.com/apache/camel-website/pull/446#discussion_r466827484



##########
File path: antora-ui-camel/src/js/98-hugo-on-this-page.js
##########
@@ -0,0 +1,91 @@
+;(function () {
+  'use strict'
+
+  var parent
+  var child = []
+  var lastActiveLink = null
+  var selector = document.querySelector('.toolbar')
+  var headings = Array.from(document.querySelectorAll('article.doc h1, 
article.doc h2, article.doc h3'))
+  var links = Array.from(document.querySelectorAll('aside.toc-sidebar 
.toc-hugo a'))
+  var width = document.querySelector('.navbar').offsetWidth
+  var parentSelector = document.querySelectorAll('.toc-hugo li ul:first-child')
+
+  var topValMin = selector.getBoundingClientRect().top + 
selector.getBoundingClientRect().height - 5
+  var topValMax = topValMin + 20

Review comment:
       I have worked with changing the font size in the browser settings, it 
works as this just sets the range based on the position and height of the 
toolbar.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to