Browse Source

fix: unordered list number

close #1784
Tienson Qin 4 years ago
parent
commit
0352d4e2c1
2 changed files with 5 additions and 2 deletions
  1. 1 1
      resources/css/common.css
  2. 4 1
      src/main/frontend/components/block.cljs

+ 1 - 1
resources/css/common.css

@@ -396,7 +396,7 @@ li p:first-child,
 }
 
 li p:last-child,
-.block-body p:last-child {
+.block-body p:last-child, .block-body ul:last-child, .block-body ol:last-child, .block-body dl:last-child {
   margin-bottom: 0;
 }
 

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

@@ -1778,7 +1778,10 @@
       (if (nil? checkbox)
         (->elem
          :li
-         {:checked checked?}
+         (cond->
+           {:checked checked?}
+           number
+           (assoc :value number))
          (vec-cat
           [(->elem
             :p