mirror of
https://github.com/penpot/penpot.git
synced 2025-06-11 23:32:49 +02:00
✨ Add copy all code button
This commit is contained in:
parent
600b1a6d8d
commit
e01af790f3
6 changed files with 64 additions and 23 deletions
|
@ -433,9 +433,8 @@
|
|||
:tab-size 2})])))
|
||||
|
||||
(defn selector-name [shape]
|
||||
(let [
|
||||
name (-> (:name shape)
|
||||
#_(subs 0 (min 10 (count (:name shape)))))
|
||||
(let [name (-> (:name shape)
|
||||
(subs 0 (min 10 (count (:name shape)))))
|
||||
;; selectors cannot start with numbers
|
||||
name (if (re-matches #"^\d.*" name) (dm/str "c-" name) name)
|
||||
id (-> (dm/str (:id shape))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue