0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-10 00:40:30 -05:00

🐛 Fix No tooltip when user is hovering over the component in Swap sidebar

This commit is contained in:
Pablo Alba 2023-11-20 12:34:34 +01:00 committed by Andrey Antukh
parent a40ddd6959
commit a9d2728fc7
2 changed files with 10 additions and 2 deletions

View file

@ -161,6 +161,7 @@
visible? (h/use-visible item-ref :once? true)]
[:div
{:ref item-ref
:title (if is-search (:full-name item) (:name item))
:class (stl/css-case :component-item (not listing-thumbs)
:grid-cell listing-thumbs
:selected (= (:id item) component-id)
@ -182,7 +183,8 @@
path (cfh/butlast-path group-name)
on-group-click #(on-enter-group group-name)]
[:div {:class (stl/css :component-group)
:key (uuid/next) :on-click on-group-click}
:key (uuid/next) :on-click on-group-click
:title group-name}
[:div
(when-not (str/blank? path)
[:span {:class (stl/css :component-group-path)} (str "\u00A0/\u00A0" path)])
@ -351,7 +353,8 @@
(if (or is-search? (str/empty? (:path filters)))
[:div {:class (stl/css :component-path-empty)}]
[:button {:class (stl/css :component-path)
:on-click on-go-back}
:on-click on-go-back
:title (:path filters)}
[:span i/arrow-slide]
[:span (:path filters)]])

View file

@ -230,6 +230,11 @@
background-color: var(--assets-item-background-color);
color: var(--assets-item-name-foreground-color);
.component-name {
@include textEllipsis;
width: 80%;
}
svg,
img {
background-color: var(--assets-component-background-color);