mirror of
https://github.com/logseq/logseq.git
synced 2026-05-05 19:36:35 +00:00
fix: replace hardcoded min ratio
This commit is contained in:
committed by
Tienson Qin
parent
44d0cd172f
commit
4e2b5263d1
@@ -197,7 +197,7 @@
|
||||
(set-width! ratio sidebar-el)))
|
||||
:else
|
||||
#(.. js/document.documentElement -classList (remove cursor-class)))
|
||||
(when (> ratio 0.1) (state/open-right-sidebar!)))))}}))
|
||||
(when (> ratio (/ min-ratio 2)) (state/open-right-sidebar!)))))}}))
|
||||
(.styleCursor false)
|
||||
(.on "dragstart" #(.. js/document.documentElement -classList (add "is-resizing-buf")))
|
||||
(.on "dragend" #(.. js/document.documentElement -classList (remove "is-resizing-buf")))
|
||||
|
||||
Reference in New Issue
Block a user