mirror of
https://github.com/logseq/logseq.git
synced 2026-04-27 07:35:01 +00:00
Enhance(UX): left sidebar (#11649)
* chore(ui): add sidebar related components * chore(shui): add sidebar core * enhance(ui): WIP polish left sidebar * enhance(ui): polish opacity value * enhance(ui): remove unnecessary css * enhance(ui): simplify the left sidebar related css * enhance(ui): polish left sidebar navigations * enhance(ui): polish navigations items * enhance(ui): polish graphs picker from the left sidebar * enhance(ui): polish graphs selector * enhance(ui): graphs dropdown content * enhance(ux): create new page for the graphs selector section * enhance(ui): remote icon for the graphs selector * enhance(ui): polish sidebar navigations filter * fix(ui): background color for the left sidebar * enhance(ui): refactor names related with the left sidebar * enhance(ux): WIP configurable navigations from the left sidebar * enhance(ux): configurable navigations popup * enhance(ux): persist user navigations from the left sidebar * fix(ui): bad graph selector type icon * fix: lint * fix: lint * enhance(ui): polish details for the left sidebar * chore: remove shadcn sidebar component * chore: remove shadcn sidebar related component * fix(ui): text overflow for the page name item
This commit is contained in:
@@ -761,11 +761,15 @@
|
||||
|
||||
(defn- input-placeholder
|
||||
[sidebar?]
|
||||
(let [search-mode (:search/mode @state/state)]
|
||||
(let [search-mode (:search/mode @state/state)
|
||||
search-args (:search/args @state/state)]
|
||||
(cond
|
||||
(and (= search-mode :graph) (not sidebar?))
|
||||
"Add graph filter"
|
||||
|
||||
(= search-args :new-page)
|
||||
"Type a page name to create"
|
||||
|
||||
:else
|
||||
"What are you looking for?")))
|
||||
|
||||
@@ -949,6 +953,7 @@
|
||||
::input (atom (or (:initial-input opts) "")))))
|
||||
:will-unmount (fn [state]
|
||||
(state/set-state! :search/mode nil)
|
||||
(state/set-state! :search/args nil)
|
||||
state)}
|
||||
(mixins/event-mixin
|
||||
(fn [state]
|
||||
|
||||
Reference in New Issue
Block a user