From 615f4afc2d7b51838cab0331792c54d408b436e2 Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Tue, 26 May 2026 15:36:29 +0300 Subject: [PATCH] fix: ul styles for rich text --- src/shared/styles/theme.css | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/shared/styles/theme.css b/src/shared/styles/theme.css index df1a44b..869a1b0 100644 --- a/src/shared/styles/theme.css +++ b/src/shared/styles/theme.css @@ -316,15 +316,12 @@ .rich-text ul { list-style: none; - padding-left: 0; + padding-left: 1.5em; margin: 1em 0; } .rich-text ul li { - display: grid; - grid-template-columns: auto 1fr; - gap: 0.65em; - align-items: start; + text-indent: -1.5em; margin-top: 0.5em; } @@ -334,6 +331,10 @@ .rich-text ul li::before { content: "◆"; + display: inline-block; + width: calc(1.5em / 0.55); + /* reset inherited text-indent so glyph isn't shifted inside the ::before box */ + text-indent: 0; color: var(--blue); font-size: 0.55em; /* line-height matches parent so diamond centers within the first line box */