Merge remote-tracking branch 'origin/staging' into develop

This commit is contained in:
Alejandro Alonso 2025-04-09 12:53:18 +02:00
commit 774e11c827
8 changed files with 28 additions and 9 deletions

View file

@ -199,7 +199,7 @@
(ptk/reify ::webhooks-fetched
ptk/UpdateEvent
(update [_ state]
(update-in state [:team-id team-id] assoc :webhooks webhooks))))
(update-in state [:teams team-id] assoc :webhooks webhooks))))
(defn fetch-webhooks
[]

View file

@ -23,7 +23,7 @@
[item item item]))
(mf/defc select
[{:keys [default-value options class dropdown-class is-open? on-change on-pointer-enter-option on-pointer-leave-option disabled]}]
[{:keys [default-value options class dropdown-class is-open? on-change on-pointer-enter-option on-pointer-leave-option disabled data-direction]}]
(let [label-index (mf/with-memo [options]
(into {} (map as-key-value) options))
@ -112,7 +112,7 @@
[:span {:class (stl/css :current-label)} current-label]
[:span {:class (stl/css :dropdown-button)} i/arrow]
[:& dropdown {:show is-open? :on-close close-dropdown}
[:ul {:ref dropdown-element* :data-direction @dropdown-direction*
[:ul {:ref dropdown-element* :data-direction (or data-direction @dropdown-direction*)
:class (dm/str dropdown-class " " (stl/css :custom-select-dropdown))}
(for [[index item] (d/enumerate options)]
(if (= :separator item)

View file

@ -1045,7 +1045,7 @@
(tr "dashboard.your-penpot")
(:name team)))))
(mf/with-effect [team]
(mf/with-effect []
(st/emit! (dtm/fetch-webhooks)))
[:*

View file

@ -20,7 +20,7 @@
.colorpicker {
border-radius: $br-8;
overflow: auto;
overflow: hidden;
}
.colorpicker-tabs {

View file

@ -124,6 +124,7 @@
[:div {:class (stl/css :select-wrapper)}
[:& select
{:class (stl/css :shadow-type-select)
:data-direction "up"
:default-value (or (d/name selected) "recent")
:options options
:on-change on-library-change}]]