fix: editor content survives theme HMR + bullet marker styling + indent control

This commit is contained in:
lucaronin
2026-02-16 08:21:23 +01:00
parent 405d5f39fc
commit 4c211e09bc
3 changed files with 14 additions and 3 deletions

View File

@@ -78,6 +78,18 @@
margin-bottom: var(--lists-item-spacing);
}
/* Bullet marker styling — BlockNote uses ::before or a span for the bullet */
.editor__blocknote-container [data-content-type="bulletListItem"] .bn-block-content::before,
.editor__blocknote-container [data-content-type="bulletListItem"] li::marker {
font-size: var(--lists-bullet-size) !important;
color: var(--lists-bullet-color) !important;
}
/* List indentation */
.editor__blocknote-container .bn-block-group .bn-block-group {
margin-left: var(--lists-indent-size);
}
/* --- Numbered lists --- */
.editor__blocknote-container [data-content-type="numberedListItem"] {
padding-left: var(--lists-padding-left);