mirror of
https://github.com/penpot/penpot.git
synced 2025-06-14 07:51:38 +02:00
🐛 Fix components texts not displayed in assets panel
This commit is contained in:
parent
e8027d3316
commit
9e35229ebd
4 changed files with 13 additions and 6 deletions
|
@ -287,7 +287,6 @@
|
|||
:fill "none"}
|
||||
[:& shape-wrapper {:shape frame}]]]))
|
||||
|
||||
|
||||
;; Component for rendering a thumbnail of a single componenent. Mainly
|
||||
;; used to render thumbnails on assets panel.
|
||||
(mf/defc component-svg
|
||||
|
@ -334,7 +333,8 @@
|
|||
:fill "none"}
|
||||
|
||||
[:> shape-container {:shape root-shape}
|
||||
[:& root-shape-wrapper {:shape root-shape :view-box vbox}]]]))
|
||||
[:& (mf/provider muc/is-component?) {:value true}
|
||||
[:& root-shape-wrapper {:shape root-shape :view-box vbox}]]]]))
|
||||
|
||||
(mf/defc object-svg
|
||||
{::mf/wrap [mf/memo]}
|
||||
|
@ -468,7 +468,7 @@
|
|||
(let [texts (->> objects
|
||||
(vals)
|
||||
(filterv #(= (:type %) :text))
|
||||
(mapv :content)) ]
|
||||
(mapv :content))]
|
||||
|
||||
(->> (rx/from texts)
|
||||
(rx/map fonts/get-content-fonts)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue