This is an automated email from the ASF dual-hosted git repository.
bbovenzi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new a2713f36442 UI: Portal MarkAs button tooltips to prevent scrollbar
layout shift (#77172) (#77199)
a2713f36442 is described below
commit a2713f364425adfad4226340f262d4caa3cd24bb
Author: Sachin Chandra Yadav <[email protected]>
AuthorDate: Wed Nov 18 02:46:54 2026 +0530
UI: Portal MarkAs button tooltips to prevent scrollbar layout shift
(#77172) (#77199)
Explicitly set `portalled` on Tooltip components in
MarkTaskInstanceAsButton,
MarkRunAsButton, and MarkTaskGroupAsButton so that they render into
document.body
instead of inline inside Menu.Content. This prevents transient viewport
overflow
and scrollbar layout shifts when hovering menu options.
Closes: #77172
Signed-off-by: Sachin Chandra Yadav <[email protected]>
---
.../src/airflow/ui/src/components/MarkAs/Run/MarkRunAsButton.tsx | 1 +
.../airflow/ui/src/components/MarkAs/TaskGroup/MarkTaskGroupAsButton.tsx | 1 +
.../ui/src/components/MarkAs/TaskInstance/MarkTaskInstanceAsButton.tsx | 1 +
3 files changed, 3 insertions(+)
diff --git
a/airflow-core/src/airflow/ui/src/components/MarkAs/Run/MarkRunAsButton.tsx
b/airflow-core/src/airflow/ui/src/components/MarkAs/Run/MarkRunAsButton.tsx
index 3738a72b43c..2760258e529 100644
--- a/airflow-core/src/airflow/ui/src/components/MarkAs/Run/MarkRunAsButton.tsx
+++ b/airflow-core/src/airflow/ui/src/components/MarkAs/Run/MarkRunAsButton.tsx
@@ -93,6 +93,7 @@ export const MarkRunAsButton = ({ dagRun, isHotkeyEnabled =
false, ...rest }: Pr
disabled={!isHotkeyEnabled}
key={menuState}
openDelay={100}
+ portalled
>
{/* Not disabled when state matches: re-applying lets users
also flip upstream/downstream tasks */}
<Menu.Item
diff --git
a/airflow-core/src/airflow/ui/src/components/MarkAs/TaskGroup/MarkTaskGroupAsButton.tsx
b/airflow-core/src/airflow/ui/src/components/MarkAs/TaskGroup/MarkTaskGroupAsButton.tsx
index 2914b2b8b82..033d70cbd45 100644
---
a/airflow-core/src/airflow/ui/src/components/MarkAs/TaskGroup/MarkTaskGroupAsButton.tsx
+++
b/airflow-core/src/airflow/ui/src/components/MarkAs/TaskGroup/MarkTaskGroupAsButton.tsx
@@ -93,6 +93,7 @@ export const MarkTaskGroupAsButton = ({ groupTaskInstance,
isHotkeyEnabled = fal
disabled={!isHotkeyEnabled}
key={menuState}
openDelay={100}
+ portalled
>
{/* Not disabled when state matches: re-applying lets users
also flip upstream/downstream tasks */}
<Menu.Item
diff --git
a/airflow-core/src/airflow/ui/src/components/MarkAs/TaskInstance/MarkTaskInstanceAsButton.tsx
b/airflow-core/src/airflow/ui/src/components/MarkAs/TaskInstance/MarkTaskInstanceAsButton.tsx
index e4d3e24390b..6eab5ec424e 100644
---
a/airflow-core/src/airflow/ui/src/components/MarkAs/TaskInstance/MarkTaskInstanceAsButton.tsx
+++
b/airflow-core/src/airflow/ui/src/components/MarkAs/TaskInstance/MarkTaskInstanceAsButton.tsx
@@ -99,6 +99,7 @@ export const MarkTaskInstanceAsButton = ({ isHotkeyEnabled =
false, taskInstance
disabled={!isHotkeyEnabled || !hasShortcut}
key={menuState}
openDelay={100}
+ portalled
>
{/* Not disabled when state matches: re-applying lets users
also flip upstream/downstream tasks */}
<Menu.Item