From 1f1d10761101407fc8356fcdac38fa1855de31dc Mon Sep 17 00:00:00 2001 From: Pierre Jeambrun Date: Wed, 5 Nov 2025 16:42:55 +0100 Subject: [PATCH] =?UTF-8?q?Revert=20"Fix=20text=20selection=20jumping=20in?= =?UTF-8?q?=20logs=20pane=20to=20match=20text=20editor=20behavior=E2=80=A6?= =?UTF-8?q?"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit d6fa3b089cc18e87cff89b15d7b7ddd1dcafa8c3. --- .../TaskInstance/Logs/TaskLogContent.tsx | 25 ++----------------- 1 file changed, 2 insertions(+), 23 deletions(-) diff --git a/airflow-core/src/airflow/ui/src/pages/TaskInstance/Logs/TaskLogContent.tsx b/airflow-core/src/airflow/ui/src/pages/TaskInstance/Logs/TaskLogContent.tsx index 8347bc54ee64b..dab2a4c667696 100644 --- a/airflow-core/src/airflow/ui/src/pages/TaskInstance/Logs/TaskLogContent.tsx +++ b/airflow-core/src/airflow/ui/src/pages/TaskInstance/Logs/TaskLogContent.tsx @@ -100,11 +100,6 @@ export const TaskLogContent = ({ error, isLoading, logError, parsedLogs, wrap }: } }, [isLoading, rowVirtualizer, hash, parsedLogs]); - useLayoutEffect(() => { - // Force remeasurement when wrap changes since item heights will change - rowVirtualizer.measure(); - }, [wrap, rowVirtualizer]); - const handleScrollTo = (to: "bottom" | "top") => { if (parsedLogs.length > 0) { rowVirtualizer.scrollToIndex(to === "bottom" ? parsedLogs.length - 1 : 0); @@ -131,17 +126,10 @@ export const TaskLogContent = ({ error, isLoading, logError, parsedLogs, wrap }: position="relative" py={3} ref={parentRef} - textWrap={wrap ? "pre-wrap" : "nowrap"} + textWrap={wrap ? "pre" : "nowrap"} width="100%" > - + {rowVirtualizer.getVirtualItems().map((virtualRow) => ( ))} -