Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 4a72d57

Browse files
committed
fix(desktop): pre styling
1 parent 0068cb3 commit 4a72d57

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

packages/ui/src/components/markdown.css

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
[data-component="markdown"] {
22
min-width: 0;
33
max-width: 100%;
4-
overflow: auto;
5-
scrollbar-width: none;
4+
overflow: hidden;
65
color: var(--text-base);
76
text-wrap: pretty;
87

@@ -14,10 +13,6 @@
1413
line-height: var(--line-height-large); /* 166.667% */
1514
letter-spacing: var(--letter-spacing-normal);
1615

17-
&::-webkit-scrollbar {
18-
display: none;
19-
}
20-
2116
h1,
2217
h2,
2318
h3 {
@@ -41,4 +36,15 @@
4136
margin-bottom: 16px;
4237
border-color: var(--border-weaker-base);
4338
}
39+
40+
pre {
41+
margin-top: 2rem;
42+
margin-bottom: 2rem;
43+
overflow: auto;
44+
45+
scrollbar-width: none;
46+
&::-webkit-scrollbar {
47+
display: none;
48+
}
49+
}
4450
}

0 commit comments

Comments
 (0)