Revert "Merge pull request #154 from RooVetGit/fix_markdown_wrapping"

This reverts commit 7a4fdebe05, reversing
changes made to 011113dbab.
This commit is contained in:
Matt Rubens
2024-12-17 22:30:33 -05:00
parent eaa5f7b4eb
commit e2ebeaa603

View File

@@ -54,21 +54,14 @@ const StyledMarkdown = styled.div`
pre { pre {
background-color: ${CODE_BLOCK_BG_COLOR}; background-color: ${CODE_BLOCK_BG_COLOR};
border-radius: 3px; border-radius: 3px;
margin: 13px 0; margin: 13x 0;
padding: 10px; padding: 10px 10px;
max-width: 100%; max-width: calc(100vw - 20px);
white-space: pre-wrap; overflow-x: auto;
word-break: break-word; overflow-y: hidden;
overflow-wrap: break-word;
} }
pre > code { pre > code {
white-space: pre-wrap;
word-break: break-word;
overflow-wrap: break-word;
width: 100%;
display: inline-block;
.hljs-deletion { .hljs-deletion {
background-color: var(--vscode-diffEditor-removedTextBackground); background-color: var(--vscode-diffEditor-removedTextBackground);
display: inline-block; display: inline-block;
@@ -85,9 +78,7 @@ const StyledMarkdown = styled.div`
span.line:empty { span.line:empty {
display: none; display: none;
} }
white-space: pre-wrap; word-wrap: break-word;
word-break: break-word;
overflow-wrap: break-word;
border-radius: 3px; border-radius: 3px;
background-color: ${CODE_BLOCK_BG_COLOR}; background-color: ${CODE_BLOCK_BG_COLOR};
font-size: var(--vscode-editor-font-size, var(--vscode-font-size, 12px)); font-size: var(--vscode-editor-font-size, var(--vscode-font-size, 12px));
@@ -125,10 +116,7 @@ const StyledMarkdown = styled.div`
li, li,
ol, ol,
ul { ul {
line-height: 1.4; line-height: 1.25;
white-space: pre-wrap;
word-break: break-word;
overflow-wrap: break-word;
} }
ol, ol,