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 <github@erik.michelson.eu>
This commit is contained in:
Erik Michelson
2026-07-23 21:19:42 +02:00
committed by Philip Molares
parent 844c390bbc
commit 9c1b36df95
2 changed files with 3 additions and 5 deletions

View File

@@ -44,10 +44,6 @@
overflow: hidden; overflow: hidden;
} }
.markdown-body.slides section[data-markdown] > ul {
display: inline-block;
}
.markdown-body.slides > section > section + section::after { .markdown-body.slides > section > section + section::after {
content: ''; content: '';
position: absolute; position: absolute;
@@ -61,7 +57,8 @@
display: none; 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; display: inline-block;
text-align: left; text-align: left;
margin: 0 0 0 1em; margin: 0 0 0 1em;

View File

@@ -18,6 +18,7 @@
### Bugfixes ### Bugfixes
- Restore native browser zoom-in keyboard shortcuts in the editor ([#6244](https://github.com/hedgedoc/hedgedoc/issues/6244)) - 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))
## <i class="fa fa-tag"></i> 1.11.0 <i class="fa fa-calendar-o"></i> 2026-06-18 ## <i class="fa fa-tag"></i> 1.11.0 <i class="fa fa-calendar-o"></i> 2026-06-18