diff --git a/CHANGES.md b/CHANGES.md index 1983d4977c..270e08fe55 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -80,6 +80,7 @@ example. It's still usable as before, we just removed the example. ### :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) +- 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 @@ -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 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 U and E icon displayed in project list [Taiga #12806](https://tree.taiga.io/project/penpot/issue/12806) ## 2.11.1 diff --git a/frontend/src/app/main/data/workspace/variants.cljs b/frontend/src/app/main/data/workspace/variants.cljs index 2dc9358737..1def674c9b 100644 --- a/frontend/src/app/main/data/workspace/variants.cljs +++ b/frontend/src/app/main/data/workspace/variants.cljs @@ -128,14 +128,16 @@ related-components (cfv/find-variant-components data objects variant-id) 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) - (pcb/with-objects objects) - (pcb/with-library-data data) - (clvp/generate-update-property-name variant-id pos new-name)) + changes (when valid-pos? + (-> (pcb/empty-changes it page-id) + (pcb/with-objects objects) + (pcb/with-library-data data) + (clvp/generate-update-property-name variant-id pos new-name))) undo-id (js/Symbol)] - (when (not= prop-name new-name) + (when (and valid-pos? (not= prop-name new-name)) (rx/of (dwu/start-undo-transaction undo-id) (dch/commit-changes changes) diff --git a/frontend/src/app/main/ui/dashboard/subscription.cljs b/frontend/src/app/main/ui/dashboard/subscription.cljs index fcfb82d1c3..65f8da6894 100644 --- a/frontend/src/app/main/ui/dashboard/subscription.cljs +++ b/frontend/src/app/main/ui/dashboard/subscription.cljs @@ -151,14 +151,16 @@ (mf/defc menu-team-icon* [{:keys [subscription-type]}] - [:span {:class (stl/css :subscription-icon) - :title (if (= subscription-type "unlimited") - (tr "subscription.dashboard.power-up.unlimited-plan") - (tr "subscription.dashboard.power-up.enterprise-plan")) - :data-testid "subscription-icon"} - (case subscription-type - "unlimited" i/character-u - "enterprise" i/character-e)]) + [: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") + (tr "subscription.dashboard.power-up.unlimited-plan") + (tr "subscription.dashboard.power-up.enterprise-plan")) + :data-testid "subscription-icon"}]]) (mf/defc main-menu-power-up* [{:keys [close-sub-menu]}] diff --git a/frontend/src/app/main/ui/dashboard/subscription.scss b/frontend/src/app/main/ui/dashboard/subscription.scss index a473ea45a9..7d18da543c 100644 --- a/frontend/src/app/main/ui/dashboard/subscription.scss +++ b/frontend/src/app/main/ui/dashboard/subscription.scss @@ -144,20 +144,20 @@ padding: 0; } -.subscription-icon { - @extend .button-icon; +.subscription-icon-wrapper { + display: flex; + justify-content: center; + align-items: center; background: var(--color-background-primary); - stroke: var(--color-foreground-secondary); - border-radius: 6px; + border-radius: $br-6; border: 1.75px solid var(--color-foreground-secondary); - stroke-width: 2.25px; - width: var(--sp-xl); - height: var(--sp-xl); + block-size: var(--sp-xl); + inline-size: 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 { diff --git a/frontend/src/app/main/ui/ds/tooltip/tooltip.cljs b/frontend/src/app/main/ui/ds/tooltip/tooltip.cljs index 3dc5b71d66..5435ae0c77 100644 --- a/frontend/src/app/main/ui/ds/tooltip/tooltip.cljs +++ b/frontend/src/app/main/ui/ds/tooltip/tooltip.cljs @@ -173,7 +173,7 @@ [:id {:optional true} :string] [:offset {:optional true} :int] [:delay {:optional true} :int] - [:content [:or fn? :string]] + [:content [:or fn? :string map?]] [:placement {:optional true} [:maybe [:enum "top" "bottom" "left" "right" "top-right" "bottom-right" "bottom-left" "top-left"]]]]) diff --git a/manage.sh b/manage.sh index 174276b7d8..cc9d21307c 100755 --- a/manage.sh +++ b/manage.sh @@ -19,7 +19,7 @@ set -e 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" elif [[ "$ARCH" == "aarch64" || "$ARCH" == "arm64" ]]; then ARCH="arm64"