Explorar o código

fix: unordered list number

close #1784
Tienson Qin %!s(int64=4) %!d(string=hai) anos
pai
achega
0352d4e2c1
Modificáronse 2 ficheiros con 5 adicións e 2 borrados
  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,
 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;
   margin-bottom: 0;
 }
 }
 
 

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

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