From 9c1b36df95f2fadf41402992e06c702a8ab0ce5e Mon Sep 17 00:00:00 2001 From: Erik Michelson Date: Thu, 23 Jul 2026 21:19:42 +0200 Subject: [PATCH] fix(slide-preview): list items in correct order This change fixes the displaying of (nested) list items in the preview pane of the editor. Previously, list items were all treated as inline blocks and therefore nested list items were placed next to the previous item instead of below it. Now they align properly as expected. Signed-off-by: Erik Michelson --- public/css/slide-preview.css | 7 ++----- public/docs/release-notes.md | 1 + 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/public/css/slide-preview.css b/public/css/slide-preview.css index 963ee340..083f5e6f 100644 --- a/public/css/slide-preview.css +++ b/public/css/slide-preview.css @@ -44,10 +44,6 @@ overflow: hidden; } -.markdown-body.slides section[data-markdown] > ul { - display: inline-block; -} - .markdown-body.slides > section > section + section::after { content: ''; position: absolute; @@ -61,7 +57,8 @@ display: none; } -.markdown-body.slides ul, .markdown-body.slides ol { +.markdown-body.slides section[data-markdown] > div:first-child > ul, +.markdown-body.slides section[data-markdown] > div:first-child > ol { display: inline-block; text-align: left; margin: 0 0 0 1em; diff --git a/public/docs/release-notes.md b/public/docs/release-notes.md index 362ffe1c..89d9c040 100644 --- a/public/docs/release-notes.md +++ b/public/docs/release-notes.md @@ -18,6 +18,7 @@ ### Bugfixes - Restore native browser zoom-in keyboard shortcuts in the editor ([#6244](https://github.com/hedgedoc/hedgedoc/issues/6244)) +- Nested list items render properly again in the preview pane for slides ([#6080](https://github.com/hedgedoc/hedgedoc/issues/6080)) ## 1.11.0 2026-06-18