🐛 Fix image swatches displays a wrong format in list view (#10975)

This commit is contained in:
Luis de Dios 2026-07-31 11:24:55 +02:00 committed by GitHub
parent 0b5db57def
commit 3fc1e6aadd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View File

@ -65,7 +65,7 @@
(uc/gradient-type->string (:type gradient))
(some? image)
(tr "media.image")))))
(:name image)))))
(def ^:private schema:swatch
[:map {:title "SchemaSwatch"}

View File

@ -108,7 +108,8 @@
gradient-text]])
image
[:span (tr "media.image")]
[:span {:class (stl/css :color-row-colorpicker-label)}
(:name image)]
color
(if name
@ -124,7 +125,8 @@
opacity-text])])
:else
[:span (tr "labels.other")])]]]))
[:span {:class (stl/css :color-row-colorpicker-label)}
(tr "labels.other")])]]]))
;; ---------------------------------------------------------------------------
;; Grouped color list