feat(ui): enhance left sidebar (#2899)

* feat(ui): enhance left sidebar

Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
This commit is contained in:
Charlie
2021-10-01 21:27:31 +08:00
committed by GitHub
parent 575e7f976b
commit 7f9a04d2c1
40 changed files with 885 additions and 457 deletions

View File

@@ -284,11 +284,10 @@
"Tip: " [:code (util/->platform-shortcut "Ctrl+Shift+p")] " to open the commands palette"]
:interactive true
:arrow true}
[:a.inline-block
{:style {:margin-top 1
:margin-left 12}
[:a.inline-block.fade-link
{:style {:margin-left 12}
:on-click #(state/toggle! :ui/command-palette-open?)}
(svg/icon-cmd 20)])])]
(ui/icon "command" {:style {:font-size 20}})])])]
(let [recent-search (mapv (fn [q] {:type :search :data q}) (db/get-key-value :recent/search))
pages (->> (db/get-key-value :recent/pages)
(remove nil?)