Merge pull request #5556 from penpot/niwinz-enhancements-3

 Minor enhancements and rumext reverts
This commit is contained in:
Alejandro 2025-01-13 10:42:05 +01:00 committed by GitHub
commit be9c4cc96e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 18 additions and 14 deletions

View file

@ -962,7 +962,7 @@
(some? position-modifier)
(gpt/transform position-modifier))
max-height (when (some? viewport) (int (* (obj/get viewport "height") 0.75)))
max-height (when (some? viewport) (int (* (get viewport :height) 0.75)))
;; We should probably look for a better way of doing this.
bubble-margin {:x 24 :y 24}

View file

@ -271,17 +271,20 @@
:on-click on-close-history
:icon "close"}])]
[:> tab-switcher*
{:tabs [{:label (tr "workspace.versions.tab.history")
:id "history"
:content versions-tab}
{:label (tr "workspace.versions.tab.actions")
:id "actions"
:content history-tab}]
:default-selected "history"
:class (stl/css :left-sidebar-tabs)
:action-button-position "end"
:action-button button}])
(let [tabs (mf/object
[{:label (tr "workspace.versions.tab.history")
:id "history"
:content versions-tab}
{:label (tr "workspace.versions.tab.actions")
:id "actions"
:content history-tab}])]
[:> tab-switcher*
{:tabs tabs
:default-selected "history"
:class (stl/css :left-sidebar-tabs)
:action-button-position "end"
:action-button button}]))
:else
[:> options-toolbox* props])]]]))