Browse Source

fix: align block content for ordered items and unordered items

Tienson Qin 2 năm trước cách đây
mục cha
commit
a842b7de72

+ 1 - 1
src/main/frontend/components/block.cljs

@@ -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?)

+ 2 - 1
src/main/frontend/components/block.css

@@ -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 {