mirror of
https://github.com/penpot/penpot.git
synced 2025-05-22 17:56:12 +02:00
add projects search styles
This commit is contained in:
parent
b131dea579
commit
5d0e57acb7
2 changed files with 37 additions and 18 deletions
|
@ -192,16 +192,16 @@
|
|||
(let [change-term #(rs/emit! (dd/set-project-filtering (.-value (.-target %))))
|
||||
clear-term #(rs/emit! (dd/clear-project-filtering))]
|
||||
(html
|
||||
[:form
|
||||
[:input
|
||||
[:form.dashboard-search
|
||||
[:input.input-text
|
||||
{:type "text"
|
||||
:on-change change-term
|
||||
:auto-focus true
|
||||
:placeholder "Search..."
|
||||
:value (rum/react project-filtering-l)}]
|
||||
[:input
|
||||
{:type "button"
|
||||
:on-click clear-term
|
||||
:value "X"}]])))
|
||||
[:div.clear-search
|
||||
{:on-click clear-term}
|
||||
i/close]])))
|
||||
|
||||
(def project-search
|
||||
(mx/component
|
||||
|
@ -218,9 +218,7 @@
|
|||
[:div.dashboard-info
|
||||
[:span.dashboard-projects (tr "ds.num-projects" (t/c pcount))]
|
||||
(project-sorting)
|
||||
(project-search)]
|
||||
[:div.dashboard-search
|
||||
i/search]])))
|
||||
(project-search)]])))
|
||||
|
||||
(def menu
|
||||
(mx/component
|
||||
|
@ -299,4 +297,3 @@
|
|||
{:render grid-render
|
||||
:name "grid"
|
||||
:mixins [rum/reactive]}))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue