guan404ming commented on code in PR #51943:
URL: https://github.com/apache/airflow/pull/51943#discussion_r2160266810


##########
airflow-core/src/airflow/ui/src/pages/TaskInstance/Logs/TaskLogContent.tsx:
##########
@@ -42,25 +87,22 @@ export const TaskLogContent = ({ error, isLoading, 
logError, parsedLogs, wrap }:
   });
 
   useLayoutEffect(() => {
-    if (location.hash) {
-      const hash = location.hash.replace("#", "");
-
-      setTimeout(() => {
-        const element = document.querySelector<HTMLElement>(`[id='${hash}']`);
+    if (location.hash && !isLoading) {
+      rowVirtualizer.scrollToIndex(Number(hash));

Review Comment:
   Nice catch, I've made some changes about the position issues you mentioned. 
Please take another look and let me know if there is any issue, thanks!



-- 
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]

Reply via email to