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

This commit is contained in:
Andrey Antukh
2025-12-03 13:10:30 +01:00
6 changed files with 33 additions and 27 deletions

View File

@@ -80,6 +80,7 @@ example. It's still usable as before, we just removed the example.
### :heart: Community contributions (Thank you!) ### :heart: Community contributions (Thank you!)
- Ensure consistent snap behavior across all zoom levels [Github #7774](https://github.com/penpot/penpot/pull/7774) by [@Tokytome](https://github.com/Tokytome) - Ensure consistent snap behavior across all zoom levels [Github #7774](https://github.com/penpot/penpot/pull/7774) by [@Tokytome](https://github.com/Tokytome)
- Fix crash in token grid view due to tooltip validation (by @dfelinto) [Github #7887](https://github.com/penpot/penpot/pull/7887)
### :sparkles: New features & Enhancements ### :sparkles: New features & Enhancements
@@ -107,6 +108,7 @@ example. It's still usable as before, we just removed the example.
- Fix input confirmation behavior is not uniform [Taiga #12294](https://tree.taiga.io/project/penpot/issue/12294) - Fix input confirmation behavior is not uniform [Taiga #12294](https://tree.taiga.io/project/penpot/issue/12294)
- Fix copy/pasting application/transit+json [Taiga #12721](https://tree.taiga.io/project/penpot/issue/12721) - Fix copy/pasting application/transit+json [Taiga #12721](https://tree.taiga.io/project/penpot/issue/12721)
- Fix problem with plugins content attribute [Plugins #209](https://github.com/penpot/penpot-plugins/issues/209) - Fix problem with plugins content attribute [Plugins #209](https://github.com/penpot/penpot-plugins/issues/209)
- Fix U and E icon displayed in project list [Taiga #12806](https://tree.taiga.io/project/penpot/issue/12806)
## 2.11.1 ## 2.11.1

View File

@@ -128,14 +128,16 @@
related-components (cfv/find-variant-components data objects variant-id) related-components (cfv/find-variant-components data objects variant-id)
props (-> related-components last :variant-properties) props (-> related-components last :variant-properties)
prop-name (-> props (nth pos) :name) valid-pos? (> (count props) pos)
prop-name (when valid-pos? (-> props (nth pos) :name))
changes (-> (pcb/empty-changes it page-id) changes (when valid-pos?
(-> (pcb/empty-changes it page-id)
(pcb/with-objects objects) (pcb/with-objects objects)
(pcb/with-library-data data) (pcb/with-library-data data)
(clvp/generate-update-property-name variant-id pos new-name)) (clvp/generate-update-property-name variant-id pos new-name)))
undo-id (js/Symbol)] undo-id (js/Symbol)]
(when (not= prop-name new-name) (when (and valid-pos? (not= prop-name new-name))
(rx/of (rx/of
(dwu/start-undo-transaction undo-id) (dwu/start-undo-transaction undo-id)
(dch/commit-changes changes) (dch/commit-changes changes)

View File

@@ -151,14 +151,16 @@
(mf/defc menu-team-icon* (mf/defc menu-team-icon*
[{:keys [subscription-type]}] [{:keys [subscription-type]}]
[:span {:class (stl/css :subscription-icon) [:span {:class (stl/css :subscription-icon-wrapper)}
[:> icon* {:icon-id (case subscription-type
"unlimited" i/character-u
"enterprise" i/character-e)
:class (stl/css :subscription-icon)
:size "s"
:title (if (= subscription-type "unlimited") :title (if (= subscription-type "unlimited")
(tr "subscription.dashboard.power-up.unlimited-plan") (tr "subscription.dashboard.power-up.unlimited-plan")
(tr "subscription.dashboard.power-up.enterprise-plan")) (tr "subscription.dashboard.power-up.enterprise-plan"))
:data-testid "subscription-icon"} :data-testid "subscription-icon"}]])
(case subscription-type
"unlimited" i/character-u
"enterprise" i/character-e)])
(mf/defc main-menu-power-up* (mf/defc main-menu-power-up*
[{:keys [close-sub-menu]}] [{:keys [close-sub-menu]}]

View File

@@ -144,20 +144,20 @@
padding: 0; padding: 0;
} }
.subscription-icon { .subscription-icon-wrapper {
@extend .button-icon; display: flex;
justify-content: center;
align-items: center;
background: var(--color-background-primary); background: var(--color-background-primary);
stroke: var(--color-foreground-secondary); border-radius: $br-6;
border-radius: 6px;
border: 1.75px solid var(--color-foreground-secondary); border: 1.75px solid var(--color-foreground-secondary);
stroke-width: 2.25px; block-size: var(--sp-xl);
width: var(--sp-xl); inline-size: var(--sp-xl);
height: var(--sp-xl);
svg {
block-size: var(--sp-m);
inline-size: var(--sp-m);
} }
.subscription-icon {
stroke: var(--color-foreground-secondary);
stroke-width: 2.25px;
} }
.menu-item { .menu-item {

View File

@@ -173,7 +173,7 @@
[:id {:optional true} :string] [:id {:optional true} :string]
[:offset {:optional true} :int] [:offset {:optional true} :int]
[:delay {:optional true} :int] [:delay {:optional true} :int]
[:content [:or fn? :string]] [:content [:or fn? :string map?]]
[:placement {:optional true} [:placement {:optional true}
[:maybe [:enum "top" "bottom" "left" "right" "top-right" "bottom-right" "bottom-left" "top-left"]]]]) [:maybe [:enum "top" "bottom" "left" "right" "top-right" "bottom-right" "bottom-left" "top-left"]]]])

View File

@@ -19,7 +19,7 @@ set -e
ARCH=$(uname -m) ARCH=$(uname -m)
if [[ "$ARCH" == "x86_64" || "$ARCH" == "i386" || "$ARCH" == "i686" ]]; then if [[ "$ARCH" == "x86_64" || "$ARCH" == "amd64" || "$ARCH" == "i386" || "$ARCH" == "i686" ]]; then
ARCH="amd64" ARCH="amd64"
elif [[ "$ARCH" == "aarch64" || "$ARCH" == "arm64" ]]; then elif [[ "$ARCH" == "aarch64" || "$ARCH" == "arm64" ]]; then
ARCH="arm64" ARCH="arm64"