mirror of
https://github.com/penpot/penpot.git
synced 2025-05-31 05:06:12 +02:00
commit
8ee9b45243
4 changed files with 16 additions and 8 deletions
|
@ -49,11 +49,16 @@
|
|||
|
||||
(defn generate-paragraph-styles
|
||||
[_shape data]
|
||||
(let [line-height (:line-height data 1.2)
|
||||
(let [line-height (:line-height data)
|
||||
line-height
|
||||
(if (and (some? line-height) (not= "" line-height))
|
||||
line-height
|
||||
(:line-height txt/default-text-attrs))
|
||||
|
||||
text-align (:text-align data "start")
|
||||
base #js {;; Fix a problem when exporting HTML
|
||||
:fontSize 0 ;;(str (:font-size data (:font-size txt/default-text-attrs)) "px")
|
||||
:lineHeight (:line-height data (:line-height txt/default-text-attrs))
|
||||
:lineHeight line-height
|
||||
:margin 0}]
|
||||
|
||||
(cond-> base
|
||||
|
|
|
@ -134,7 +134,8 @@
|
|||
time (dt/timeago (:created-at entry) {:locale locale})]
|
||||
[:span {:class (stl/css :date)} time])]]
|
||||
|
||||
[:> icon-button* {:variant "ghost"
|
||||
[:> icon-button* {:class (stl/css :version-entry-options)
|
||||
:variant "ghost"
|
||||
:aria-label (tr "workspace.versions.version-menu")
|
||||
:on-click handle-open-menu
|
||||
:icon "menu"}]]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue