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 48ceda22bd keep Log scrolling only to nearest div (#24689)
48ceda22bd is described below
commit 48ceda22bdbee50b2d6ca24767164ce485f3c319
Author: Brent Bovenzi <[email protected]>
AuthorDate: Mon Jun 27 18:53:54 2022 -0400
keep Log scrolling only to nearest div (#24689)
---
airflow/www/static/js/grid/details/content/taskInstance/Logs/index.jsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/airflow/www/static/js/grid/details/content/taskInstance/Logs/index.jsx
b/airflow/www/static/js/grid/details/content/taskInstance/Logs/index.jsx
index fb5e2f977e..890d85feeb 100644
--- a/airflow/www/static/js/grid/details/content/taskInstance/Logs/index.jsx
+++ b/airflow/www/static/js/grid/details/content/taskInstance/Logs/index.jsx
@@ -85,7 +85,7 @@ const Logs = ({
useEffect(() => {
if (codeBlockBottomDiv.current) {
- codeBlockBottomDiv.current.scrollIntoView();
+ codeBlockBottomDiv.current.scrollIntoView({ block: 'nearest', inline:
'nearest' });
}
}, [wrap, data]);