Skip to content

Commit 5198fd3

Browse files
committed
fix: apply list styles to StyledMarkdown in settings/styles.ts
- Added list-style-type for ordered and unordered lists - Added nested list styles for proper hierarchy - Ensures consistency with MarkdownBlock component fixes - Fixes list rendering in ModelDescriptionMarkdown component
1 parent 1e2cedf commit 5198fd3

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

webview-ui/src/components/settings/styles.ts

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,31 @@ export const StyledMarkdown = styled.div`
3232
margin-left: 0;
3333
}
3434
35+
ol {
36+
list-style-type: decimal;
37+
}
38+
39+
ul {
40+
list-style-type: disc;
41+
}
42+
43+
/* Nested list styles */
44+
ul ul {
45+
list-style-type: circle;
46+
}
47+
48+
ul ul ul {
49+
list-style-type: square;
50+
}
51+
52+
ol ol {
53+
list-style-type: lower-alpha;
54+
}
55+
56+
ol ol ol {
57+
list-style-type: lower-roman;
58+
}
59+
3560
p {
3661
white-space: pre-wrap;
3762
}

0 commit comments

Comments
 (0)