Skip to content

Commit 53970ec

Browse files
committed
fix: empty elements in list collapsing
1 parent 36f0424 commit 53970ec

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/web/EnrichedText.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@
125125
.eti-editor ul:not([data-type]) > li,
126126
.et-view ul:not([data-type]) > li {
127127
position: relative;
128+
min-height: max(1lh, var(--et-ul-bullet-size));
128129
}
129130

130131
.eti-editor ul:not([data-type]) > li::before,
@@ -159,6 +160,7 @@
159160
.et-view ol > li {
160161
position: relative;
161162
counter-increment: eti-ol;
163+
min-height: 1lh;
162164
}
163165

164166
.eti-editor ol > li::before,
@@ -265,6 +267,8 @@
265267
position: relative;
266268
list-style: none;
267269
pointer-events: none;
270+
min-height: max(1lh, var(--et-checkbox-box-size, 24px)
271+
);
268272
}
269273

270274
.et-view ul[data-type="checkbox"] > li > p {

0 commit comments

Comments
 (0)