SachinyadavAug20 commented on issue #77172:
URL: https://github.com/apache/airflow/issues/77172#issuecomment-6939061113
I tried reproducing this on Airflow 3.4.0 (Chromium on Linux) following the
steps on a task instance page with the "Mark as" (`✓/✗`) menu open, but wasn't
able to reproduce the scrollbar flash or the 7px layout shift on my end.
Looking into the code, this might be environment-specific due to how
different operating systems and viewport widths handle scrollbars:
1. **OS Scrollbar Behavior**: Linux / macOS often default to overlay (0px
layout width) scrollbars, whereas Windows 11 Chrome uses classic fixed-width
scrollbars (~15px). If an element touches the viewport edge on Windows, the
sudden appearance of the scrollbar gutter shrinks the viewport width and pushes
page content sideways.
2. **Unportalled Tooltip**: In `src/system-components/Tooltip.tsx`,
`portalled` defaults to `undefined`, so `<Portal disabled={!portalled}>`
renders `<ChakraTooltip.Positioner>` inline inside `<Menu.Content>` rather than
attaching it to `document.body`. When hovering over the options near the
viewport boundary, that inline positioner might cause transient container
overflow on narrower windows or specific zoom levels.
## Video and screenshots
https://github.com/user-attachments/assets/39329512-8a19-4ba8-a408-a44fecd3ca3f
<img width="1906" height="1046" alt="image"
src="https://github.com/user-attachments/assets/e1874940-487f-4cc9-b408-42887bbd3d08"
/>
Could you share:
- Your display resolution and browser zoom level?
- Whether your browser window is maximized or tiled/split-screen?
- Whether you have "Always show scrollbars" turned on in Windows system
settings?
This would help pinpoint whether portalling the tooltip (`portalled={true}`)
resolves the overflow for your setup.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]