Skip to content

Fix Grid view scrollbar hiding latest Dags run#69693

Open
MhussainD4772 wants to merge 3 commits into
apache:mainfrom
MhussainD4772:fix-grid-scrollbar-hides-latest-run
Open

Fix Grid view scrollbar hiding latest Dags run#69693
MhussainD4772 wants to merge 3 commits into
apache:mainfrom
MhussainD4772:fix-grid-scrollbar-hides-latest-run

Conversation

@MhussainD4772

@MhussainD4772 MhussainD4772 commented Jul 10, 2026

Copy link
Copy Markdown

On macOS, the vertical scrollbar in the Dags Grid view could overlay the task cells of the latest (rightmost) Dags run, making them hard to see and click. macOS uses overlay scrollbars, which do not respect scrollbar-gutter, so this code change adds a small non-interactive spacer after the newest run column in Grid-only view to keep the scrollbar off those cells.

closes: #69447

Testing

  • macOS Safari, Firefox, and Chrome - Grid view: scrolled to the latest run with the vertical scrollbar visible; the rightmost column stays fully visible.
  • Bug reproduced:
BUG-REPRODUCED

-Bug fix scrrenshots and videos are below
BUG-FIXED chrome
BUG-FIXED firefox
BUG-FIXED safari

BUG-FIXED-VIDEO-.firefox.mov
BUG-FIXED-VIDEO.safari.mov

Before/after screenshots attached below.


Was generative AI tooling used to co-author this PR?
  • Yes — Cursor IDE

Generated-by: Cursor following the guidelines


@boring-cyborg

boring-cyborg Bot commented Jul 10, 2026

Copy link
Copy Markdown

Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide
Here are some useful points:

  • Pay attention to the quality of your code (ruff, mypy and type annotations). Our prek-hooks will help you with that.
  • In case of a new feature add useful documentation (in docstrings or in docs/ directory). Adding a new operator? Check this short guide Consider adding an example Dag that shows how users should use it.
  • Consider using Breeze environment for testing locally, it's a heavy docker but it ships with a working Airflow and a lot of integrations.
  • Be patient and persistent. It might take some time to get a review or get the final approval from Committers.
  • Please follow ASF Code of Conduct for all communication including (but not limited to) comments on Pull Requests, Mailing list and Slack.
  • Be sure to read the Airflow Coding style.
  • Always keep your Pull Requests rebased, otherwise your build might fail due to changes not related to your commits.
    Apache Airflow is a community-driven project and together we are making it better 🚀.
    In case of doubts contact the developers at:
    Mailing List: dev@airflow.apache.org
    Slack: https://s.apache.org/airflow-slack

@boring-cyborg boring-cyborg Bot added the area:UI Related to UI/UX. For Frontend Developers. label Jul 10, 2026
@pierrejeambrun pierrejeambrun changed the title UI: Fix Grid view scrollbar hiding latest Dags run Fix Grid view scrollbar hiding latest Dags run Jul 10, 2026
@pierrejeambrun pierrejeambrun added this to the Airflow 3.3.1 milestone Jul 10, 2026
@pierrejeambrun pierrejeambrun added the backport-to-v3-3-test Backport to v3-3-test label Jul 10, 2026

@pierrejeambrun pierrejeambrun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR.

Comment thread airflow-core/src/airflow/ui/src/layouts/Details/Grid/Grid.tsx

@pierrejeambrun pierrejeambrun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM thanks

@bbovenzi bbovenzi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like some of the task states of the grid are appearing above the run bars when scrolling. (Scroll down and then look at the top of the grid view). Let's make sure we are properly hiding content that we have scrolled past.

@bbovenzi

Copy link
Copy Markdown
Contributor
Screenshot 2026-07-13 at 4 34 00 PM

^ this screenshot in particular. but also visible in some of the videos

@potiuk potiuk added the ready for maintainer review Set after triaging when all criteria pass. label Jul 18, 2026
The sticky header's background only spanned the scrollport, so run
columns beyond it had no backing and task cells showed through when
the details panel was narrow and the grid scrolled right. The header's
top padding also left a band the sticky task name column did not cover,
exposing the tallest duration bar behind it.
@MhussainD4772
MhussainD4772 force-pushed the fix-grid-scrollbar-hides-latest-run branch from a794bbb to 9fd6fc0 Compare July 25, 2026 20:03
@MhussainD4772

Copy link
Copy Markdown
Author

@bbovenzi Thanks for digging into this!! The sticky header is a width: auto block, so inside the scroll container it only spans the scroll-port. Run columns past that width had no header background behind them, and cells scrolling underneath were visible through the gap. Stretching the header with min-width: max-content makes its background cover the full scrollable width.

While verifying I found a second gap, the header's top padding left a 16px band that the sticky task name column didn't cover, so the tallest duration bar (the only one that reaches the full BAR_HEIGHT, overflowing its wrapper by 2px) peeked out above the column when it scrolled behind it. Moving that padding from the header onto its children lets the column's background span the full header height.

Verified in Safari, Firefox, and Chrome: narrow panel scrolled fully right and down, wide panel with header/body columns still aligned, and Gantt view unchanged. Rebased onto current main, which includes #69917 touching the same component.

Bug reproduced

scrollPastBugReproduced

Bug Fix [Chrome. Firefox, Safari]

BUGFIX-CHROME BUGFIX-FIREFOX BUGFIX-SAFARI
BUGFIX.VIDEO.mov

Drafted-by: Claude; reviewed by @MhussainD4772.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers. backport-to-v3-3-test Backport to v3-3-test ready for maintainer review Set after triaging when all criteria pass.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dag UI scrollbar hides tasks from latest scheduled run in grid view on Mac OS

4 participants