mirror of
https://github.com/penpot/penpot.git
synced 2025-06-01 22:21:50 +02:00
✨ Show interactions on click as default setting at the view mode
This commit is contained in:
parent
23e200dece
commit
128fe29619
5 changed files with 54 additions and 37 deletions
|
@ -106,7 +106,7 @@
|
|||
|
||||
:viewer
|
||||
(let [{:keys [query-params path-params]} route
|
||||
{:keys [index share-id section page-id] :or {section :interactions}} query-params
|
||||
{:keys [index share-id section page-id interactions-mode] :or {section :interactions interactions-mode :show-on-click}} query-params
|
||||
{:keys [file-id]} path-params]
|
||||
(if (:token query-params)
|
||||
[:& viewer/breaking-change-notice]
|
||||
|
@ -114,7 +114,12 @@
|
|||
:file-id file-id
|
||||
:section section
|
||||
:index index
|
||||
:share-id share-id}]))
|
||||
:share-id share-id
|
||||
:interactions-mode (keyword interactions-mode)
|
||||
:interactions-show? (case (keyword interactions-mode)
|
||||
:hide false
|
||||
:show true
|
||||
:show-on-click false)}]))
|
||||
|
||||
:workspace
|
||||
(let [project-id (some-> params :path :project-id uuid)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue