From 19c96fcc07be8b48594aa1eaa9e7613eb47d899f Mon Sep 17 00:00:00 2001 From: Sivin Varghese <64252451+iamsivin@users.noreply.github.com> Date: Fri, 24 Jul 2026 20:06:33 +0530 Subject: [PATCH] fix: prevent page overflow from hidden tooltips (#15156) --- app/javascript/entrypoints/dashboard.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/javascript/entrypoints/dashboard.js b/app/javascript/entrypoints/dashboard.js index d0c6c808d..8014a6714 100644 --- a/app/javascript/entrypoints/dashboard.js +++ b/app/javascript/entrypoints/dashboard.js @@ -88,6 +88,15 @@ app.use(FloatingVue, { instantMove: true, arrowOverflow: false, disposeTimeout: 5000000, + // Use the `fixed` strategy so tooltips are positioned relative to the viewport. + // With the default `absolute` strategy, a hidden tooltip lingers at a stale offset + // and adds to the page's scroll height, letting the whole dashboard over-scroll. + // Fixed elements never affect scroll height, so this can't happen. + themes: { + tooltip: { + strategy: 'fixed', + }, + }, }); app.use(hljsVuePlugin);