mirror of
https://github.com/penpot/penpot.git
synced 2025-01-09 16:30:37 -05:00
🐛 Fix No tooltip when user is hovering over the component in Swap sidebar
This commit is contained in:
parent
a40ddd6959
commit
a9d2728fc7
2 changed files with 10 additions and 2 deletions
|
@ -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)]])
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue