From dd7f55404ce2ee48f1cac066d49251327446de68 Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Fri, 18 Apr 2025 15:26:40 -0600 Subject: [PATCH] update how the list is displayed --- .../ui/typography/AppMarkdown/AppMarkdown.module.css | 11 +++++++++-- .../ui/typography/AppMarkdown/AppMarkdownCommon.tsx | 7 ++----- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/web/src/components/ui/typography/AppMarkdown/AppMarkdown.module.css b/web/src/components/ui/typography/AppMarkdown/AppMarkdown.module.css index feb5c5820..919540a98 100644 --- a/web/src/components/ui/typography/AppMarkdown/AppMarkdown.module.css +++ b/web/src/components/ui/typography/AppMarkdown/AppMarkdown.module.css @@ -44,8 +44,15 @@ .container ul, .container ol, .container dl { - list-style-position: revert; - margin-left: calc(var(--spacing) * 4); + list-style-position: outside; +} + +.container ol { + padding-inline-start: 1em; +} + +.container ul { + padding-inline-start: 2.5em; } .container ol { diff --git a/web/src/components/ui/typography/AppMarkdown/AppMarkdownCommon.tsx b/web/src/components/ui/typography/AppMarkdown/AppMarkdownCommon.tsx index fd285c1d2..3806c8251 100644 --- a/web/src/components/ui/typography/AppMarkdown/AppMarkdownCommon.tsx +++ b/web/src/components/ui/typography/AppMarkdown/AppMarkdownCommon.tsx @@ -128,10 +128,7 @@ export const CustomOrderedList: React.FC< > = ({ children, markdown, showLoader, ...rest }) => { return (
    {children}
@@ -148,7 +145,7 @@ export const CustomUnorderedList: React.FC< return (