0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-13 16:21:57 -05:00

Merge remote-tracking branch 'origin/staging' into develop

This commit is contained in:
Alejandro Alonso 2024-04-11 10:21:04 +02:00
commit 5fccc59ad5
5 changed files with 18 additions and 9 deletions

View file

@ -219,11 +219,11 @@
(defn advance-shape-ref
"Get the shape-ref of the near main of the shape, recursively repeated as many times
as the given levels."
[file container libraries shape levels & options]
(let [ref-shape (find-ref-shape file container libraries shape options)]
[file container libraries shape levels & {:keys [include-deleted?] :or {include-deleted? false}}]
(let [ref-shape (find-ref-shape file container libraries shape :include-deleted? include-deleted? :with-context? true)]
(if (or (nil? (:shape-ref ref-shape)) (not (pos? levels)))
(:id ref-shape)
(advance-shape-ref file container libraries ref-shape (dec levels) options))))
(advance-shape-ref file (:container (meta ref-shape)) libraries ref-shape (dec levels) :include-deleted? include-deleted?))))
(defn find-ref-component
"Locate the nearest component in the local file or libraries that is referenced by the

View file

@ -312,11 +312,13 @@
:on-menu-close on-menu-close
:on-import on-import}]
[:span {:class (stl/css :info)} (str (tr "labels.num-of-files" (i18n/c file-count)))]
;; We group these two spans under a div to avoid having extra space between them.
[:div
[:span {:class (stl/css :info)} (str (tr "labels.num-of-files" (i18n/c file-count)))]
(let [time (-> (:modified-at project)
(dt/timeago {:locale locale}))]
[:span {:class (stl/css :recent-files-row-title-info)} (str ", " time)])
(let [time (-> (:modified-at project)
(dt/timeago {:locale locale}))]
[:span {:class (stl/css :recent-files-row-title-info)} (str ", " time)])]
[:div {:class (stl/css-case :project-actions true
:pinned-project (:is-pinned project))}

View file

@ -91,7 +91,7 @@
color (cond
(some? gradient)
(str/ffmt "url(#stroke-color-gradient-%s-%s)" render-id index)
(str/ffmt "url(#stroke-color-gradient-%-%)" render-id index)
(some? image)
(str/ffmt "url(#stroke-fill-%-%)" render-id index)

View file

@ -184,7 +184,7 @@
:class (stl/css-case
:icon true
:icon-tick true
:hidden invalid-text?)}
:invalid invalid-text?)}
i/tick]
[:div {:class (stl/css :icon :icon-cross)
:title (tr "labels.discard")

View file

@ -559,6 +559,13 @@
}
}
&.icon-tick.invalid:hover {
cursor: default;
svg {
stroke: var(--icon-foreground);
}
}
&.icon-cross:hover,
&.icon-trash:hover {
svg {