diff --git a/CHANGES.md b/CHANGES.md index ebad087b7c..1361ff568b 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -53,6 +53,11 @@ on-premises instances** that want to keep up to date. - Fix wrong color in the export progress bar [Taiga #11299](https://tree.taiga.io/project/penpot/issue/11299) - Fix right sidebar width overflow on long layer names [Taiga #11212](https://tree.taiga.io/project/penpot/issue/11212) - Fix comment icon fill [Taiga #11388](https://tree.taiga.io/project/penpot/issue/11388) +- Fix gap on radio-buttons component [Taiga #11360](https://tree.taiga.io/project/penpot/issue/11360) +- Fix button width [Taiga #11394](https://tree.taiga.io/project/penpot/issue/11394) +- Fix mixed letter spacing and line height [Taiga #11178](https://tree.taiga.io/project/penpot/issue/11178) +- Fix snap nodes shortcut [Taiga #11054](https://tree.taiga.io/project/penpot/issue/11054) + ## 2.7.2 ### :bug: Bugs fixed diff --git a/frontend/src/app/main/data/workspace/path/shortcuts.cljs b/frontend/src/app/main/data/workspace/path/shortcuts.cljs index 07fb3b1fa3..38c3195260 100644 --- a/frontend/src/app/main/data/workspace/path/shortcuts.cljs +++ b/frontend/src/app/main/data/workspace/path/shortcuts.cljs @@ -73,7 +73,8 @@ :fn #(st/emit! (drp/make-curve))} :snap-nodes {:tooltip (ds/meta "'") - :command (ds/c-mod "'") + ;;https://github.com/ccampbell/mousetrap/issues/85 + :command [(ds/c-mod "'") (ds/c-mod "219")] :subsections [:path-editor] :fn #(st/emit! (drp/toggle-snap))} diff --git a/frontend/src/app/main/ui/components/radio_buttons.scss b/frontend/src/app/main/ui/components/radio_buttons.scss index 2000065688..88c0913387 100644 --- a/frontend/src/app/main/ui/components/radio_buttons.scss +++ b/frontend/src/app/main/ui/components/radio_buttons.scss @@ -11,6 +11,7 @@ border-radius: $br-8; height: $s-32; background-color: var(--input-background-color); + gap: $s-4; } .radio-icon { diff --git a/frontend/src/app/main/ui/inspect/exports.scss b/frontend/src/app/main/ui/inspect/exports.scss index f7365067c8..9b4e842405 100644 --- a/frontend/src/app/main/ui/inspect/exports.scss +++ b/frontend/src/app/main/ui/inspect/exports.scss @@ -39,6 +39,7 @@ .multiple-exports { @include flexRow; + grid-column: 1 / 9; } .label { diff --git a/frontend/src/app/main/ui/workspace/sidebar/options/menus/typography.cljs b/frontend/src/app/main/ui/workspace/sidebar/options/menus/typography.cljs index 083a7a6f26..f462aa9092 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/options/menus/typography.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/options/menus/typography.cljs @@ -360,11 +360,8 @@ [{:keys [values on-change on-blur]}] (let [{:keys [line-height letter-spacing]} values - line-height (or line-height "1.2") letter-spacing (or letter-spacing "0") - line-height-nillable (if (= (str line-height) "1.2") false true) - handle-change (fn [value attr] (on-change {attr (str value)}))] @@ -379,11 +376,11 @@ {:min -200 :max 200 :step 0.1 - :default "1.2" + :default-value "1.2" :class (stl/css :line-height-input) :value (attr->string line-height) - :placeholder (tr "settings.multiple") - :nillable line-height-nillable + :placeholder (if (= :multiple line-height) (tr "settings.multiple") "--") + :nillable (= :multiple line-height) :on-change #(handle-change % :line-height) :on-blur on-blur}]] @@ -397,10 +394,12 @@ {:min -200 :max 200 :step 0.1 + :default-value "0" :class (stl/css :letter-spacing-input) :value (attr->string letter-spacing) - :placeholder (tr "settings.multiple") + :placeholder (if (= :multiple letter-spacing) (tr "settings.multiple") "--") :on-change #(handle-change % :letter-spacing) + :nillable (= :multiple letter-spacing) :on-blur on-blur}]]])) (mf/defc text-transform-options