mirror of
https://github.com/logseq/logseq.git
synced 2026-05-18 01:42:19 +00:00
* Fix #5856: Wrong order of switching images in maximize mode Co-authored-by: llcc <lzhes43@gmail.com>
This commit is contained in:
@@ -245,7 +245,11 @@
|
||||
images (if-not (= (count images) 1)
|
||||
(let [^js _image (.closest (.-target e) ".asset-container")
|
||||
image (. _image querySelector "img")]
|
||||
(cons image (remove #(= image %) images)))
|
||||
(->> images
|
||||
(sort-by (juxt #(.-y %) #(.-x %)))
|
||||
(split-with (complement #{image}))
|
||||
reverse
|
||||
(apply concat)))
|
||||
images)
|
||||
images (for [^js it images] {:src (.-src it)
|
||||
:w (.-naturalWidth it)
|
||||
|
||||
Reference in New Issue
Block a user