mirror of https://github.com/logseq/logseq
Improve editor modals style consistency
parent
3cbd304a22
commit
e1ad100b8c
|
@ -92,7 +92,7 @@
|
|||
{:on-chosen (page-handler/on-chosen-handler input id q pos format)
|
||||
:on-enter #(page-handler/page-not-exists-handler input id q current-pos)
|
||||
:item-render (fn [page-name chosen?]
|
||||
[:div.py-2.preview-trigger-wrapper
|
||||
[:div.preview-trigger-wrapper
|
||||
(block/page-preview-trigger
|
||||
{:children [:div (search/highlight-exact-query page-name q)]
|
||||
:open? chosen?
|
||||
|
@ -101,7 +101,7 @@
|
|||
:tippy-distance 24
|
||||
:tippy-position (if sidebar? "left" "right")}
|
||||
page-name)])
|
||||
:empty-div [:div.text-gray-500.pl-4.pr-4 "Search for a page"]
|
||||
:empty-div [:div.text-gray-500.text-sm.px-4.py-2 "Search for a page"]
|
||||
:class "black"})))))
|
||||
|
||||
(rum/defcs block-search-auto-complete < rum/reactive
|
||||
|
@ -171,7 +171,7 @@
|
|||
matched-templates
|
||||
{:on-chosen (editor-handler/template-on-chosen-handler id)
|
||||
:on-enter non-exist-handler
|
||||
:empty-div [:div.text-gray-500.pl-4.pr-4 "Search for a template"]
|
||||
:empty-div [:div.text-gray-500.px-4.py-2.text-sm "Search for a template"]
|
||||
:item-render (fn [[template _block-db-id]]
|
||||
template)
|
||||
:class "black"})))))
|
||||
|
@ -241,7 +241,7 @@
|
|||
input-value (get state ::input-value)]
|
||||
(when (seq input-option)
|
||||
(let [command (:command (first input-option))]
|
||||
[:div.p-2.mt-2.rounded-md.shadow-sm.bg-base-2
|
||||
[:div.p-2.rounded-md.shadow-lg
|
||||
(for [{:keys [id placeholder type autoFocus] :as input-item} input-option]
|
||||
[:div.my-3
|
||||
[:input.form-input.block.w-full.pl-2.sm:text-sm.sm:leading-5
|
||||
|
|
|
@ -38,8 +38,7 @@
|
|||
(not (util/safe-re-find #" " q)))
|
||||
(let [i (string/index-of lc-content lc-q)
|
||||
[before after] [(subs content 0 i) (subs content (+ i (count q)))]]
|
||||
[:p
|
||||
{:class "m-0"}
|
||||
[:div
|
||||
(when-not (string/blank? before)
|
||||
[:span before])
|
||||
[:mark {:class "p-0 rounded-none"} (subs content i (+ i (count q)))]
|
||||
|
|
Loading…
Reference in New Issue