0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-16 08:51:32 -05:00

🐛 Fix max lenght on assets inputs (#6201)

This commit is contained in:
Eva Marco 2025-04-01 13:28:35 +02:00 committed by GitHub
parent a20dd3f955
commit 74f11859e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 10 additions and 1 deletions

View file

@ -46,7 +46,7 @@
- Fix incorrect handling of background task result (now task rows are properly marked as completed)
- Fix available size of resize handler [Taiga #10639](https://tree.taiga.io/project/penpot/issue/10639)
- Internal error when install a plugin by penpothub - Try plugin [Taiga #10542](https://tree.taiga.io/project/penpot/issue/10542)
- Add character limitation to asset inputs [Taiga #10669](https://tree.taiga.io/project/penpot/issue/10669)
## 2.5.4

View file

@ -8,6 +8,7 @@
(:require-macros [app.main.style :as stl])
(:require
[app.common.data.macros :as dm]
[app.main.constants :refer [max-input-length]]
[app.main.ui.icons :as i]
[app.util.dom :as dom]
[app.util.keyboard :as kbd]
@ -93,6 +94,7 @@
:default-value value
:on-key-up on-key-up
:on-double-click on-dbl-click
:max-length max-input-length
:on-blur cancel-edition}]
[:span {:class (stl/css :editable-label-close)

View file

@ -20,6 +20,8 @@
.text-row {
@extend .attr-row;
height: unset;
min-height: $s-32;
:global(.attr-value) {
align-items: center;
}

View file

@ -10,6 +10,7 @@
[app.common.data :as d]
[app.common.data.macros :as dm]
[app.common.files.helpers :as cfh]
[app.main.constants :refer [max-input-length]]
[app.main.data.event :as ev]
[app.main.data.modal :as modal]
[app.main.data.workspace :as dw]
@ -220,6 +221,7 @@
:on-blur input-blur
:on-key-down input-key-down
:auto-focus true
:max-length max-input-length
:default-value (cfh/merge-path-item (:path color) (:name color))}]
[:div {:title (if (= (:name color) default-name)

View file

@ -12,6 +12,7 @@
[app.common.data.macros :as dm]
[app.common.exceptions :as ex]
[app.common.text :as txt]
[app.main.constants :refer [max-input-length]]
[app.main.data.common :as dcm]
[app.main.data.fonts :as fts]
[app.main.data.shortcuts :as dsc]
@ -483,6 +484,7 @@
:type "text"
:ref name-input-ref
:default-value (:name typography)
:max-length max-input-length
:on-key-down on-key-down
:on-blur on-name-blur}]
@ -615,6 +617,7 @@
:type "text"
:ref name-input-ref
:default-value (:name typography)
:max-length max-input-length
:on-key-down on-key-down
:on-blur on-name-blur}]]
[:div