Skip to content

Commit

Permalink
💄 Add cosmetic changes on sidebar/options ns
Browse files Browse the repository at this point in the history
  • Loading branch information
niwinz committed Aug 23, 2024
1 parent 868af29 commit f16caa2
Showing 1 changed file with 24 additions and 19 deletions.
43 changes: 24 additions & 19 deletions frontend/src/app/main/ui/workspace/sidebar/options.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -146,25 +146,30 @@
(st/emit! :interrupt (udw/set-workspace-read-only true))
(st/emit! :interrupt (udw/set-workspace-read-only false)))))

design-content (mf/html [:& design-menu {:selected selected
:objects objects
:page-id page-id
:file-id file-id
:selected-shapes selected-shapes
:shapes-with-children shapes-with-children}])

inspect-content (mf/html [:div {:class (stl/css :element-options :inspect-options)}
[:& hrs/right-sidebar {:page-id page-id
:objects objects
:file-id file-id
:frame shape-parent-frame
:shapes selected-shapes
:on-change-section on-change-section
:on-expand on-expand
:from :workspace}]])

interactions-content (mf/html [:div {:class (stl/css :element-options :interaction-options)}
[:& interactions-menu {:shape (first shapes)}]])
design-content
(mf/html [:& design-menu {:selected selected
:objects objects
:page-id page-id
:file-id file-id
:selected-shapes selected-shapes
:shapes-with-children shapes-with-children}])

inspect-content
(mf/html [:div {:class (stl/css :element-options :inspect-options)}
[:& hrs/right-sidebar {:page-id page-id
:objects objects
:file-id file-id
:frame shape-parent-frame
:shapes selected-shapes
:on-change-section on-change-section
:on-expand on-expand
:from :workspace}]])

interactions-content
(mf/html [:div {:class (stl/css :element-options :interaction-options)}
[:& interactions-menu {:shape (first shapes)}]])


tabs
#js [#js {:label (tr "workspace.options.design")
:id "design"
Expand Down

0 comments on commit f16caa2

Please sign in to comment.