Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions airflow-core/src/airflow/ui/src/pages/Dag/Code/Code.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,13 @@ export const Code = () => {
{/* We want to show an empty state on 404 instead of an error */}
<ErrorAlert error={error ?? (codeError?.status === 404 ? undefined : codeError)} />
<ProgressBar size="xs" visibility={isLoading || isCodeLoading ? "visible" : "hidden"} />
<div
style={{
fontSize: "14px",
<Box
css={{
"& *::selection": {
bg: "gray.emphasized",
},
}}
fontSize="14px"
>
<SyntaxHighlighter
language="python"
Expand Down Expand Up @@ -179,7 +182,7 @@ export const Code = () => {
>
{codeError?.status === 404 && !Boolean(code?.content) ? "No Code Found" : (code?.content ?? "")}
</SyntaxHighlighter>
</div>
</Box>
</Box>
);
};