fix: align block content for ordered items and unordered items

pull/9333/head
Tienson Qin 2023-05-12 18:47:21 +08:00
parent 6689d886d7
commit a842b7de72
2 changed files with 3 additions and 2 deletions

View File

@ -1738,7 +1738,7 @@
order-list? (boolean own-number-list?)
order-list-idx (:own-order-list-index config)
collapsable? (editor-handler/collapsable? uuid {:semantic? true})]
[:div.block-control-wrap.mr-1.flex.flex-row.items-center.sm:mr-2
[:div.block-control-wrap.flex.flex-row.items-center
{:class (util/classnames [{:is-order-list order-list?
:bullet-closed collapsed?}])}
(when (or (not fold-button-right?) collapsable?)

View File

@ -202,6 +202,7 @@
.block-control-wrap {
height: 24px;
min-width: 50px;
margin-top: 0;
&.is-order-list {
@ -531,7 +532,7 @@
}
&.as-order-list {
@apply w-[28px] whitespace-nowrap justify-start pl-[4px];
@apply w-[28px] whitespace-nowrap justify-start pl-[3px];
}
.bullet {