Skip to content

Commit d4634fc

Browse files
authored
Merge pull request #162 from RooVetGit/chat_style_fixes
Chat style fixes
2 parents eaa5f7b + 496de0d commit d4634fc

File tree

2 files changed

+12
-18
lines changed

2 files changed

+12
-18
lines changed

.changeset/eight-items-unite.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"roo-cline": patch
3+
---
4+
5+
More targeted styling fix for gemini chats

webview-ui/src/components/common/MarkdownBlock.tsx

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)