Merge branch 'master' into enhance/customizable-whiteboard-shortcuts

pull/9228/head
Konstantinos 2023-04-26 13:22:20 +03:00 committed by GitHub
commit f5bdcff423
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 19 deletions

View File

@ -511,9 +511,6 @@
{:tabIndex "-1"
:data-is-margin-less-pages margin-less-pages?}
(when (util/electron?)
(find-in-page/search))
(when show-action-bar?
(action-bar/action-bar))
@ -783,6 +780,9 @@
:default-home default-home
:new-block-mode new-block-mode})
(when (util/electron?)
(find-in-page/search))
(main {:route-match route-match
:margin-less-pages? margin-less-pages?
:logged? logged?

View File

@ -50,7 +50,7 @@
:on-hide (fn []
(search-handler/electron-exit-find-in-page!)))))
[{:keys [matches match-case? q]}]
[:div#search-in-page.flex.flex-row.absolute.top-2.right-4.shadow-lg.px-2.py-1.faster-fade-in.items-center
[:div#search-in-page.flex.flex-row.absolute.top-10.right-4.shadow-lg.px-2.py-1.faster-fade-in.items-center
(search-input q matches)

View File

@ -317,16 +317,17 @@
:page-content
(let [{:block/keys [snippet uuid]} data ;; content here is normalized
repo (state/sub :git/current-repo)
page (model/query-block-by-uuid uuid) ;; it's actually a page
page (when uuid (model/query-block-by-uuid uuid)) ;; it's actually a page
format (db/get-page-format page)]
[:span {:data-block-ref uuid}
(search-result-item {:name "page"
:title (t :search-item/page)
:extension? true}
(if page
(page-content-search-result-item repo uuid format snippet search-q search-mode)
(do (log/error "search result with non-existing uuid: " data)
(str "Cache is outdated. Please click the 'Re-index' button in the graph's dropdown menu."))))])
(when page
[:span {:data-block-ref uuid}
(search-result-item {:name "page"
:title (t :search-item/page)
:extension? true}
(if page
(page-content-search-result-item repo uuid format snippet search-q search-mode)
(do (log/error "search result with non-existing uuid: " data)
(str "Cache is outdated. Please click the 'Re-index' button in the graph's dropdown menu."))))]))
nil)]))

View File

@ -69,11 +69,11 @@
[:div.flex.flex-row.justify-between.py-1.px-2.items-center
[:div.flex.flex-row.justify-between.flex-1.mx-2.mt-2
(for [color block-background-colors]
[:a.shadow-sm
[:a
{:title (t (keyword "color" color))
:on-click #(add-bgcolor-fn color)}
[:div.heading-bg {:style {:background-color (str "var(--color-" color "-500)")}}]])
[:a.shadow-sm
[:a
{:title (t :remove-background)
:on-click rm-bgcolor-fn}
[:div.heading-bg.remove "-"]]]])
@ -234,15 +234,15 @@
(if (keyword? status)
(case status
:success
(icon "circle-check" {:class "text-success" :size "32"})
(icon "circle-check" {:class "text-success" :size "20"})
:warning
(icon "alert-circle" {:class "text-warning" :size "32"})
(icon "alert-circle" {:class "text-warning" :size "20"})
:error
(icon "circle-x" {:class "text-error" :size "32"})
(icon "circle-x" {:class "text-error" :size "20"})
(icon "info-circle" {:class "text-indigo-500" :size "32"}))
(icon "info-circle" {:class "text-indigo-500" :size "20"}))
status)]
[:div.ui__notifications-content
{:style