mirror of
https://github.com/qdrant/landing_page.git
synced 2026-10-02 01:18:30 +02:00
* fix(docs): prevent iOS Safari from navigating on sidebar section tap On iOS/iPadOS, tapping a collapsed section in the documentation sidebar followed the <a> href inside the <summary> instead of toggling the <details> element. This navigated away from the page and closed the hamburger menu. Added a click handler in documentation.js that intercepts the link tap when the parent <details> is closed, preventing navigation and manually expanding the section instead. Tapping an already-open section still navigates to the section root page. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * Fix issue where all clicks on a collapsed section header were intercepted, preventing navigation even when tapping the link text. Now only taps in the chevron zone (right-padding area of the link) trigger the toggle. Wraps the title text in a <span> to mark the text boundary, then uses getBoundingClientRect() to compare the tap's X position against the span's right edge. This is more reliable than checking e.target, which iOS Safari inconsistently reports as the parent <a> for non-interactive child elements. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>