From ba8b552df2f531a1ee508fa24ae9dd2cc533b732 Mon Sep 17 00:00:00 2001 From: Eva Marco Date: Wed, 25 Mar 2026 13:08:41 +0100 Subject: [PATCH] :bug: Fix shared button variant and title (#8696) Co-authored-by: Luis de Dios --- CHANGES.md | 1 + frontend/src/app/main/ui/workspace/sidebar/assets.cljs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 482f8575d2..4096c72816 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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 diff --git a/frontend/src/app/main/ui/workspace/sidebar/assets.cljs b/frontend/src/app/main/ui/workspace/sidebar/assets.cljs index d899f20d67..dc7fd0a50d 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/assets.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/assets.cljs @@ -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"}