mirror of
https://github.com/logseq/logseq.git
synced 2026-05-02 01:46:35 +00:00
enhance(clock): support recording in repeated block // cleanup unused namespaces (#2777)
* enhance(clock): support recording in repeated block * cleanup: unused namespaces * cleanup: missing-else-branch if --> when * enhance: wider search results window for mobile browser * fix: namespace requirement
This commit is contained in:
@@ -152,7 +152,7 @@
|
||||
(let [rge-rects (bean/->clj (.getClientRects r))
|
||||
^js cnt-offset (.getBoundingClientRect page-cnt)]
|
||||
|
||||
(if (seq rge-rects)
|
||||
(when (seq rge-rects)
|
||||
(let [rects (for [rect rge-rects]
|
||||
{:top (- (+ (.-top rect) (.-scrollTop page-cnt)) (.-top cnt-offset))
|
||||
:left (- (+ (.-left rect) (.-scrollLeft page-cnt)) (.-left cnt-offset))
|
||||
|
||||
Reference in New Issue
Block a user