mirror of
https://github.com/smittix/intercept.git
synced 2026-04-24 06:40:00 -07:00
Fix nested nav bar appearing in embedded dashboard iframes
When dashboards (satellite, ADS-B, AIS) are loaded via iframe with ?embedded=true, the full navigation bar was still rendered, creating a "UI in UI" effect. Pass the embedded query param from route handlers to templates and conditionally skip the nav include. Fixes #144 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -54,8 +54,10 @@
|
||||
</div>
|
||||
</header>
|
||||
|
||||
{% if not embedded %}
|
||||
{% set active_mode = 'ais' %}
|
||||
{% include 'partials/nav.html' with context %}
|
||||
{% endif %}
|
||||
|
||||
<div class="stats-strip">
|
||||
<div class="stats-strip-inner">
|
||||
|
||||
Reference in New Issue
Block a user