fix: add .svg to image ext

pull/3367/head
Andelf 2021-12-06 20:33:58 +08:00 committed by Tienson Qin
parent e138b02e64
commit b70afa4071
1 changed files with 2 additions and 2 deletions

View File

@ -193,7 +193,7 @@
(defn ext-of-image? [s]
(some #(string/ends-with? s %)
[".png" ".jpg" ".jpeg" ".bmp" ".gif" ".webp"]))
[".png" ".jpg" ".jpeg" ".bmp" ".gif" ".webp" ".svg"]))
;; ".lg:absolute.lg:inset-y-0.lg:right-0.lg:w-1/2"
(defn hiccup->class
@ -1471,4 +1471,4 @@
target-bottom (.-bottom (.getBoundingClientRect el))]
(when (> (+ target-bottom (or (safe-parse-int offset) 0))
wrap-height)
(.scrollIntoView el #js {:block "center" :behavior "smooth"})))))
(.scrollIntoView el #js {:block "center" :behavior "smooth"})))))