🐛 Fix shared button variant and title (#8696)

Co-authored-by: Luis de Dios <luis.dedios@kaleidos.net>
This commit is contained in:
Eva Marco
2026-03-25 13:08:41 +01:00
committed by GitHub
parent 4e3dc6532a
commit ba8b552df2
2 changed files with 3 additions and 1 deletions

View File

@@ -16,6 +16,7 @@
- Fix Alt/Option to draw shapes from center point (by @offreal) [Github #8361](https://github.com/penpot/penpot/pull/8361)
- Add token name on broken token pill on sidebar [Taiga #13527](https://tree.taiga.io/project/penpot/issue/13527)
- Fix tooltip activated when tab change [Taiga #13627](https://tree.taiga.io/project/penpot/issue/13627)
- Fix title on shared button [Taiga #13730](https://tree.taiga.io/project/penpot/issue/13730)
## 2.14.0

View File

@@ -90,6 +90,7 @@
libs (mf/deref refs/libraries)
num-libs (count libs)
file (get libs file-id)
shared? (:is-shared file)
components (mf/with-memo [file] (ctkl/components (:data file)))
toggle-ordering
@@ -164,7 +165,7 @@
[:article {:class (stl/css :assets-bar)}
[:div {:class (stl/css :assets-header)}
(when-not ^boolean read-only?
(if (and (= num-libs 1) (empty? components))
(if (and (= num-libs 1) (empty? components) (not shared?))
[:button {:class (stl/css :add-library-button)
:on-click show-libraries-dialog
:data-testid "libraries"}