🐛 Fix absolute position tooltip message (#6660)

This commit is contained in:
Eva Marco 2025-06-09 09:52:35 +02:00 committed by GitHub
parent d008ea9edd
commit 46ce9500fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 22 additions and 23 deletions

View file

@ -148,7 +148,7 @@
(ts/dispose! schedule)
(mf/set-ref-val! schedule-ref nil))
(when-let [tooltip (dom/get-element id)]
(let [trigger-rect (->> (dom/get-current-target event)
(let [trigger-rect (->> (dom/get-target event)
(dom/get-bounding-rect))]
(mf/set-ref-val!
schedule-ref

View file

@ -49,7 +49,6 @@
(mf/defc theme-options
[{:keys [active-theme-paths themes on-close]}]
(let []
(let [on-edit-click #(modal/show! :tokens/themes {})]
[:ul {:class (stl/css :theme-options :custom-select-dropdown)
:role "listbox"}
@ -70,7 +69,7 @@
:role "option"
:on-click on-edit-click}
[:> text* {:as "span" :typography "body-small"} (tr "workspace.tokens.edit-themes")]
[:> icon* {:icon-id i/arrow-right :aria-hidden true}]]])))
[:> icon* {:icon-id i/arrow-right :aria-hidden true}]]]))
(mf/defc theme-select
[{:keys []}]