mirror of
https://github.com/penpot/penpot.git
synced 2026-08-06 12:58:55 +00:00
🐛 Fix shared button variant and title (#8696)
Co-authored-by: Luis de Dios <luis.dedios@kaleidos.net>
This commit is contained in:
parent
4e3dc6532a
commit
ba8b552df2
@ -16,6 +16,7 @@
|
|||||||
- Fix Alt/Option to draw shapes from center point (by @offreal) [Github #8361](https://github.com/penpot/penpot/pull/8361)
|
- 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)
|
- 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 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
|
## 2.14.0
|
||||||
|
|||||||
@ -90,6 +90,7 @@
|
|||||||
libs (mf/deref refs/libraries)
|
libs (mf/deref refs/libraries)
|
||||||
num-libs (count libs)
|
num-libs (count libs)
|
||||||
file (get libs file-id)
|
file (get libs file-id)
|
||||||
|
shared? (:is-shared file)
|
||||||
components (mf/with-memo [file] (ctkl/components (:data file)))
|
components (mf/with-memo [file] (ctkl/components (:data file)))
|
||||||
|
|
||||||
toggle-ordering
|
toggle-ordering
|
||||||
@ -164,7 +165,7 @@
|
|||||||
[:article {:class (stl/css :assets-bar)}
|
[:article {:class (stl/css :assets-bar)}
|
||||||
[:div {:class (stl/css :assets-header)}
|
[:div {:class (stl/css :assets-header)}
|
||||||
(when-not ^boolean read-only?
|
(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)
|
[:button {:class (stl/css :add-library-button)
|
||||||
:on-click show-libraries-dialog
|
:on-click show-libraries-dialog
|
||||||
:data-testid "libraries"}
|
:data-testid "libraries"}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user