mirror of https://github.com/logseq/logseq
fix(ui): null while query .editor-wrapper
parent
cfe28ca88a
commit
5dcbe6cdf5
|
@ -381,7 +381,7 @@
|
|||
:z-index 11}
|
||||
(when set-default-width?
|
||||
{:width max-width})
|
||||
(let [^js/HTMLElement editor
|
||||
(when-let [^js/HTMLElement editor
|
||||
(js/document.querySelector ".editor-wrapper")]
|
||||
(if (<= (.-clientWidth editor) (+ left (if set-default-width? max-width 500)))
|
||||
{:right 0}
|
||||
|
|
Loading…
Reference in New Issue