mirror of
https://github.com/penpot/penpot.git
synced 2025-07-16 15:45:15 +02:00
🐛 Fix absolute position tooltip message (#6660)
This commit is contained in:
parent
d008ea9edd
commit
46ce9500fc
2 changed files with 22 additions and 23 deletions
|
@ -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
|
||||
|
|
|
@ -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 []}]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue