mirror of https://github.com/logseq/logseq
fix: revert back a change
parent
62c07ec8f5
commit
7cb215dd44
|
@ -2,6 +2,7 @@
|
|||
(:require [cljs-drag-n-drop.core :as dnd]
|
||||
[clojure.string :as string]
|
||||
[frontend.components.command-palette :as command-palette]
|
||||
[frontend.components.find-in-page :as find-in-page]
|
||||
[frontend.components.header :as header]
|
||||
[frontend.components.journal :as journal]
|
||||
[frontend.components.onboarding :as onboarding]
|
||||
|
@ -12,7 +13,6 @@
|
|||
[frontend.components.svg :as svg]
|
||||
[frontend.components.theme :as theme]
|
||||
[frontend.components.widgets :as widgets]
|
||||
[frontend.components.find-in-page :as find-in-page]
|
||||
[frontend.config :as config]
|
||||
[frontend.context.i18n :refer [t]]
|
||||
[frontend.db :as db]
|
||||
|
@ -20,6 +20,7 @@
|
|||
[frontend.db.model :as db-model]
|
||||
[frontend.extensions.pdf.assets :as pdf-assets]
|
||||
[frontend.extensions.srs :as srs]
|
||||
[frontend.handler.common :as common-handler]
|
||||
[frontend.handler.editor :as editor-handler]
|
||||
[frontend.handler.mobile.swipe :as swipe]
|
||||
[frontend.handler.page :as page-handler]
|
||||
|
@ -391,6 +392,7 @@
|
|||
(when-let [id (state/get-edit-input-id)]
|
||||
(let [format (:block/format (state/get-edit-block))]
|
||||
(editor-handler/upload-asset id files format editor-handler/*asset-uploading? true))))})
|
||||
(common-handler/listen-to-scroll! element)
|
||||
(when (:margin-less-pages? (first (:rum/args state))) ;; makes sure full screen pages displaying without scrollbar
|
||||
(set! (.. element -scrollTop) 0)))
|
||||
state)}
|
||||
|
|
Loading…
Reference in New Issue