Skip to content

Commit 007f6b8

Browse files
authored
ui-fixes-190 (#10636)
* fix(ui): correct misspelled 'transparent' in pre scrollbar styles * fix(ui): sticking code blocks
1 parent d8c1bbe commit 007f6b8

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

apps/desktop/src/components/codegen/CodegenToolCall.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@
142142
143143
.tool-call-content :global(pre) {
144144
margin: 0;
145+
padding-bottom: 0px;
146+
overflow-x: scroll;
145147
}
146148
147149
/* STANDALONE MODE */

packages/ui/src/styles/sharable/markdown.css

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,11 @@
7373
}
7474

7575
.markdown pre {
76-
margin: 1em 0;
77-
padding: 1em;
78-
overflow: auto;
76+
margin-bottom: 16px;
77+
padding: 16px;
78+
padding-bottom: 0;
79+
overflow-x: scroll;
80+
overflow-y: auto;
7981
border: 1px solid var(--clr-border-3);
8082
border-radius: var(--radius-m);
8183
background-color: var(--clr-bg-2);

packages/ui/src/styles/utility/helpers.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
pre {
1414
&::-webkit-scrollbar {
1515
width: 14px;
16-
background-color: transaparent;
16+
background-color: transparent;
1717
}
1818

1919
&::-webkit-scrollbar-track {
20-
background-color: transaparent;
20+
background-color: transparent;
2121
}
2222

2323
&::-webkit-scrollbar-thumb {

0 commit comments

Comments
 (0)