From 0cd7bebfbaf85d98205dc092f2309da98f88cc65 Mon Sep 17 00:00:00 2001 From: pashpashpash Date: Wed, 3 Dec 2025 01:23:02 -0800 Subject: [PATCH] markdown styling fix (#7840) * markdown styling fix * nested ul --- webview-ui/src/components/common/MarkdownBlock.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/webview-ui/src/components/common/MarkdownBlock.tsx b/webview-ui/src/components/common/MarkdownBlock.tsx index 06f8b889..00def9da 100644 --- a/webview-ui/src/components/common/MarkdownBlock.tsx +++ b/webview-ui/src/components/common/MarkdownBlock.tsx @@ -295,6 +295,15 @@ const StyledMarkdown = styled.div<{ compact?: boolean }>` text-decoration: underline; } } + + hr, ul { + margin: 13px 0; + } + + li > ul { + margin: 4px 0; /* or 0 if you want them very tight */ + } + ` const PreWithCopyButton = ({ children, ...preProps }: React.HTMLAttributes) => {