From 46ceed2bbe447ea02d9c616f9099a62f7a4e9d56 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sun, 28 Jun 2026 15:00:12 +0000 Subject: [PATCH] Fix iframe height on tab switch in website/index.html Implemented auto-resizing of the dbt docs iframe when the pipeline docs tab is shown. Added a listener on the window resize event to maintain the calculated iframe height. Co-authored-by: Data-Science-Link <61164085+Data-Science-Link@users.noreply.github.com> --- website/index.html | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/website/index.html b/website/index.html index f412e9a..ec62259 100644 --- a/website/index.html +++ b/website/index.html @@ -261,8 +261,22 @@

Dashboard Coming Soon

}); // Fix iframe height on tab switch + function resizeIframe() { + const iframe = $('#docs iframe'); + if (iframe.length) { + const newHeight = Math.max(800, window.innerHeight - 250); + iframe.css('height', newHeight + 'px'); + } + } + $('#docs-tab').on('shown.bs.tab', function (e) { - // Potential to auto-resize iframe if needed + resizeIframe(); + }); + + $(window).resize(function() { + if ($('#docs-tab').hasClass('active')) { + resizeIframe(); + } }); });