Skip to content

The open source coding agent.

TypeScript

tweak: adjust astro css to render mixed nested lists (#1411)

Aiden Clineb5219f7585eb
diff --git a/packages/web/src/components/share/content-markdown.module.css b/packages/web/src/components/share/content-markdown.module.css
index 3e38ddf0253..765c25930b5 100644
--- a/packages/web/src/components/share/content-markdown.module.css
+++ b/packages/web/src/components/share/content-markdown.module.css
@@ -34,19 +34,36 @@
margin-bottom: 1rem;
}
+ ul,
+ ol {
+ margin-bottom: 0.5rem;
+ }
+
+ /* Add spacing between top-level list items */
+ ol > li {
+ margin-bottom: 0.5rem;
+ }
+
strong {
font-weight: 600;
}
ol {
- list-style-position: inside;
- padding-left: 0.75rem;
+ list-style-position: outside;
+ padding-left: 1.5rem;
}
ul {
padding-left: 1.5rem;
}
+ /* Nested list spacing */
+ li ul,
+ li ol {
+ margin-top: 0.25rem;
+ margin-bottom: 0;
+ }
+
h1,
h2,
h3,