File tree Expand file tree Collapse file tree 2 files changed +12
-18
lines changed
webview-ui/src/components/common Expand file tree Collapse file tree 2 files changed +12
-18
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " roo-cline " : patch
3+ ---
4+
5+ More targeted styling fix for gemini chats
Original file line number Diff line number Diff line change @@ -54,21 +54,15 @@ const StyledMarkdown = styled.div`
5454 pre {
5555 background-color: ${ CODE_BLOCK_BG_COLOR } ;
5656 border-radius: 3px;
57- margin: 13px 0;
58- padding: 10px;
59- max-width: 100%;
57+ margin: 13x 0;
58+ padding: 10px 10px;
59+ max-width: calc(100vw - 20px);
60+ overflow-x: auto;
61+ overflow-y: hidden;
6062 white-space: pre-wrap;
61- word-break: break-word;
62- overflow-wrap: break-word;
6363 }
6464
6565 pre > code {
66- white-space: pre-wrap;
67- word-break: break-word;
68- overflow-wrap: break-word;
69- width: 100%;
70- display: inline-block;
71-
7266 .hljs-deletion {
7367 background-color: var(--vscode-diffEditor-removedTextBackground);
7468 display: inline-block;
@@ -85,9 +79,7 @@ const StyledMarkdown = styled.div`
8579 span.line:empty {
8680 display: none;
8781 }
88- white-space: pre-wrap;
89- word-break: break-word;
90- overflow-wrap: break-word;
82+ word-wrap: break-word;
9183 border-radius: 3px;
9284 background-color: ${ CODE_BLOCK_BG_COLOR } ;
9385 font-size: var(--vscode-editor-font-size, var(--vscode-font-size, 12px));
@@ -125,10 +117,7 @@ const StyledMarkdown = styled.div`
125117 li,
126118 ol,
127119 ul {
128- line-height: 1.4;
129- white-space: pre-wrap;
130- word-break: break-word;
131- overflow-wrap: break-word;
120+ line-height: 1.25;
132121 }
133122
134123 ol,
You can’t perform that action at this time.
0 commit comments