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:
committed by
Philip Molares
parent
844c390bbc
commit
9c1b36df95
@@ -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;
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user