File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
airflow-core/src/airflow/ui/src/pages/Dag/Code Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -131,10 +131,13 @@ export const Code = () => {
131
131
{ /* We want to show an empty state on 404 instead of an error */ }
132
132
< ErrorAlert error = { error ?? ( codeError ?. status === 404 ? undefined : codeError ) } />
133
133
< ProgressBar size = "xs" visibility = { isLoading || isCodeLoading ? "visible" : "hidden" } />
134
- < div
135
- style = { {
136
- fontSize : "14px" ,
134
+ < Box
135
+ css = { {
136
+ "& *::selection" : {
137
+ bg : "gray.emphasized" ,
138
+ } ,
137
139
} }
140
+ fontSize = "14px"
138
141
>
139
142
< SyntaxHighlighter
140
143
language = "python"
@@ -179,7 +182,7 @@ export const Code = () => {
179
182
>
180
183
{ codeError ?. status === 404 && ! Boolean ( code ?. content ) ? "No Code Found" : ( code ?. content ?? "" ) }
181
184
</ SyntaxHighlighter >
182
- </ div >
185
+ </ Box >
183
186
</ Box >
184
187
) ;
185
188
} ;
You can’t perform that action at this time.
0 commit comments