You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "parkhojeong (via GitHub)" <gi...@apache.org> on 2026/05/01 19:14:01 UTC

Re: [PR] Fix copied text from Rendered Templates tab including line numbers [airflow]

parkhojeong commented on code in PR #66149:
URL: https://github.com/apache/airflow/pull/66149#discussion_r3174767579


##########
airflow-core/src/airflow/ui/src/pages/TaskInstance/RenderedTemplates.tsx:
##########
@@ -62,6 +62,7 @@ const RenderedTemplatesContent = () => {
                       <Box as="pre" borderRadius="md" fontSize="sm" m={0} overflowX="auto" p={2}>
                         <SyntaxHighlighter
                           language={language}
+                          lineNumberStyle={{ userSelect: "none" }}

Review Comment:
   i run this code but the bug still seems unfixed
   
   https://github.com/user-attachments/assets/bf484135-2293-4d5b-a934-96e7283b674d
   
   
   i found root cause and solve it(i made draft pr). `lineProps={{ style: { display: "block" } }}` solves the bug
   
   https://github.com/apache/airflow/pull/66221



-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org