From 533cac788175ebe9d81dbd3442987237a52e9b14 Mon Sep 17 00:00:00 2001 From: eva Date: Tue, 4 Jan 2022 12:03:04 +0100 Subject: [PATCH] :bug: Fix text inputs to allow negative values --- CHANGES.md | 1 + .../main/ui/workspace/sidebar/options/menus/typography.cljs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 0b8005c44..1fc41d5d6 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -17,6 +17,7 @@ ### :bug: Bugs fixed +- Fix line-height and letter-spacing inputs to allow negative values [Taiga #2381](https://tree.taiga.io/project/penpot/issue/2381) - Fix typo in Handoff tooltip [Taiga #2428](https://tree.taiga.io/project/penpot/issue/2428). - Fix crash when pressing Shift+1 on empty file [#1435](https://github.com/penpot/penpot/issues/1435). - Fix masked group resize strange behavior [Taiga #2317](https://tree.taiga.io/project/penpot/issue/2317). 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 975572524..39551e41d 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 @@ -362,7 +362,7 @@ [:input.input-text {:type "number" :step "0.1" - :min "0" + :min "-200" :max "200" :value (attr->string line-height) :placeholder (tr "settings.multiple") @@ -376,7 +376,7 @@ [:input.input-text {:type "number" :step "0.1" - :min "0" + :min "-200" :max "200" :value (attr->string letter-spacing) :placeholder (tr "settings.multiple")