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);