mirror of
https://github.com/penpot/penpot.git
synced 2025-02-13 02:28:18 -05:00
🐛 Fix expand right sidebar on workspace inspect
This commit is contained in:
parent
c148326d1c
commit
90bc9943bc
1 changed files with 3 additions and 3 deletions
|
@ -7,6 +7,7 @@
|
|||
(ns app.main.ui.viewer.handoff.right-sidebar
|
||||
(:require
|
||||
[app.main.data.workspace :as dw]
|
||||
[app.main.store :as st]
|
||||
[app.main.ui.components.shape-icon :as si]
|
||||
[app.main.ui.components.tab-container :refer [tab-container tab-element]]
|
||||
[app.main.ui.icons :as i]
|
||||
|
@ -72,7 +73,7 @@
|
|||
:shapes shapes
|
||||
:on-expand (fn []
|
||||
(when (= from :workspace)
|
||||
(dw/set-inspect-expanded (not expanded)))
|
||||
(st/emit! (dw/set-inspect-expanded (not @expanded))))
|
||||
(swap! expanded not))
|
||||
:from from}]]]]]
|
||||
[:div.empty
|
||||
|
@ -80,5 +81,4 @@
|
|||
[:div (tr "handoff.empty.select")]
|
||||
[:span.tool-window-bar-icon i/help]
|
||||
[:div (tr "handoff.empty.help")]
|
||||
[:button.btn-primary.action {:on-click #(dom/open-new-window "https://help.penpot.app/user-guide/inspect/")} (tr "handoff.empty.more-info")]
|
||||
])]]))
|
||||
[:button.btn-primary.action {:on-click #(dom/open-new-window "https://help.penpot.app/user-guide/inspect/")} (tr "handoff.empty.more-info")]])]]))
|
||||
|
|
Loading…
Add table
Reference in a new issue