summaryrefslogtreecommitdiffhomepage
path: root/packages
diff options
context:
space:
mode:
authorAdam <[email protected]>2025-11-18 15:02:18 -0600
committerAdam <[email protected]>2025-11-19 06:04:19 -0600
commit4a72d575342db1a86eeede6bca6e9fe19c7205dc (patch)
treef11cfe18217a2e42c2f2ab3c5f4fd2b204db7950 /packages
parent0068cb305f617a99556289c72b8a5ddc2bbda746 (diff)
downloadopencode-4a72d575342db1a86eeede6bca6e9fe19c7205dc.tar.gz
opencode-4a72d575342db1a86eeede6bca6e9fe19c7205dc.zip
fix(desktop): pre styling
Diffstat (limited to 'packages')
-rw-r--r--packages/ui/src/components/markdown.css18
1 files changed, 12 insertions, 6 deletions
diff --git a/packages/ui/src/components/markdown.css b/packages/ui/src/components/markdown.css
index 945c27648..19ff8e993 100644
--- a/packages/ui/src/components/markdown.css
+++ b/packages/ui/src/components/markdown.css
@@ -1,8 +1,7 @@
[data-component="markdown"] {
min-width: 0;
max-width: 100%;
- overflow: auto;
- scrollbar-width: none;
+ overflow: hidden;
color: var(--text-base);
text-wrap: pretty;
@@ -14,10 +13,6 @@
line-height: var(--line-height-large); /* 166.667% */
letter-spacing: var(--letter-spacing-normal);
- &::-webkit-scrollbar {
- display: none;
- }
-
h1,
h2,
h3 {
@@ -41,4 +36,15 @@
margin-bottom: 16px;
border-color: var(--border-weaker-base);
}
+
+ pre {
+ margin-top: 2rem;
+ margin-bottom: 2rem;
+ overflow: auto;
+
+ scrollbar-width: none;
+ &::-webkit-scrollbar {
+ display: none;
+ }
+ }
}