Skip to content

Commit

Permalink
Merge pull request weaveworks#3685 from weaveworks/fix-code-tag-style
Browse files Browse the repository at this point in the history
Fix code tag style of `react-syntax-highlighter`
  • Loading branch information
opudrovs authored May 9, 2023
2 parents 0a887c7 + 1eee8e6 commit 7c2fa0f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion ui/components/YamlView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ function UnstyledYamlView({ yaml, object, mode, className }: YamlViewProps) {
},

codeTagProps: {
wordBreak: "break-word",
style: {
wordBreak: "break-word",
},
},

lineProps: { style: { flexWrap: "wrap" } },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,9 @@ exports[`YamlView snapshots renders 1`] = `
style={
Object {
"whiteSpace": "pre-wrap",
"wordBreak": "break-word",
}
}
wordBreak="break-word"
>
<span
style={
Expand Down

0 comments on commit 7c2fa0f

Please sign in to comment.