Skip to content

Commit 58f524b

Browse files
committed
fixed
1 parent 4e159b4 commit 58f524b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/components/Yaml/YamlViewer.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ const YamlViewer: FC<YamlViewerProps> = ({ yamlString, filename }) => {
5151
language="yaml"
5252
style={isDarkMode ? materialDark : materialLight}
5353
showLineNumbers
54-
wrapLines
55-
wrapLongLines
5654
lineNumberStyle={{
5755
paddingRight: '20px',
5856
minWidth: '40px',
@@ -66,6 +64,11 @@ const YamlViewer: FC<YamlViewerProps> = ({ yamlString, filename }) => {
6664
width: '90%',
6765
background: 'transparent',
6866
}}
67+
codeTagProps={{
68+
style: {
69+
whiteSpace: 'pre-wrap',
70+
},
71+
}}
6972
>
7073
{yamlString}
7174
</SyntaxHighlighter>

0 commit comments

Comments
 (0)