mirror of
https://github.com/penpot/penpot.git
synced 2025-07-18 14:07:11 +02:00
Merge pull request #6775 from penpot/superalex-fix-entering-long-project-name
🐛 Fix entering long project name
This commit is contained in:
commit
34d65ed1c8
5 changed files with 15 additions and 10 deletions
|
@ -59,6 +59,7 @@ on-premises instances** that want to keep up to date.
|
||||||
- Fix snap nodes shortcut [Taiga #11054](https://tree.taiga.io/project/penpot/issue/11054)
|
- Fix snap nodes shortcut [Taiga #11054](https://tree.taiga.io/project/penpot/issue/11054)
|
||||||
- Fix changing a text property in a text layer does not unapply the previously applied token in the same property [Taiga #11337}(https://tree.taiga.io/project/penpot/issue/11337)
|
- Fix changing a text property in a text layer does not unapply the previously applied token in the same property [Taiga #11337}(https://tree.taiga.io/project/penpot/issue/11337)
|
||||||
- Fix shortcut error pressing G+W from the View Mode [Taiga #11061](https://tree.taiga.io/project/penpot/issue/11061)
|
- Fix shortcut error pressing G+W from the View Mode [Taiga #11061](https://tree.taiga.io/project/penpot/issue/11061)
|
||||||
|
- Fix entering long project name [Taiga #11417](https://tree.taiga.io/project/penpot/issue/11417)
|
||||||
|
|
||||||
## 2.7.2
|
## 2.7.2
|
||||||
|
|
||||||
|
|
|
@ -86,7 +86,8 @@
|
||||||
(when-not (str/empty? name)
|
(when-not (str/empty? name)
|
||||||
(st/emit! (-> (dd/rename-project (assoc project :name name))
|
(st/emit! (-> (dd/rename-project (assoc project :name name))
|
||||||
(with-meta {::ev/origin "project"}))))
|
(with-meta {::ev/origin "project"}))))
|
||||||
(swap! local assoc :edition false)))}]
|
(swap! local assoc :edition false)))
|
||||||
|
:max-length 250}]
|
||||||
[:div {:class (stl/css :dashboard-title)}
|
[:div {:class (stl/css :dashboard-title)}
|
||||||
[:h1 {:on-double-click on-edit
|
[:h1 {:on-double-click on-edit
|
||||||
:data-testid "project-title"
|
:data-testid "project-title"
|
||||||
|
|
|
@ -414,7 +414,8 @@
|
||||||
[:div {:class (stl/css :item-info)}
|
[:div {:class (stl/css :item-info)}
|
||||||
(if (and (= file-id (:file-id state)) (:edition state))
|
(if (and (= file-id (:file-id state)) (:edition state))
|
||||||
[:& inline-edition {:content (:name file)
|
[:& inline-edition {:content (:name file)
|
||||||
:on-end edit}]
|
:on-end edit
|
||||||
|
:max-length 250}]
|
||||||
[:h3 (:name file)])
|
[:h3 (:name file)])
|
||||||
[:& grid-item-metadata {:modified-at (:modified-at file)}]]
|
[:& grid-item-metadata {:modified-at (:modified-at file)}]]
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
[rumext.v2 :as mf]))
|
[rumext.v2 :as mf]))
|
||||||
|
|
||||||
(mf/defc inline-edition
|
(mf/defc inline-edition
|
||||||
[{:keys [content on-end] :as props}]
|
[{:keys [content on-end max-length] :as props}]
|
||||||
(let [name (mf/use-state content)
|
(let [name (mf/use-state content)
|
||||||
input-ref (mf/use-ref)
|
input-ref (mf/use-ref)
|
||||||
|
|
||||||
|
@ -67,7 +67,8 @@
|
||||||
:on-click on-click
|
:on-click on-click
|
||||||
:on-change on-input
|
:on-change on-input
|
||||||
:on-key-down on-keyup
|
:on-key-down on-keyup
|
||||||
:on-blur on-blur}]
|
:on-blur on-blur
|
||||||
|
:max-length max-length}]
|
||||||
[:span {:class (stl/css :close)
|
[:span {:class (stl/css :close)
|
||||||
:on-click on-cancel} i/close]]))
|
:on-click on-cancel} i/close]]))
|
||||||
|
|
||||||
|
|
|
@ -220,7 +220,8 @@
|
||||||
[:div {:class (stl/css :project-name-wrapper)}
|
[:div {:class (stl/css :project-name-wrapper)}
|
||||||
(if (:edition @local)
|
(if (:edition @local)
|
||||||
[:& inline-edition {:content (:name project)
|
[:& inline-edition {:content (:name project)
|
||||||
:on-end on-edit}]
|
:on-end on-edit
|
||||||
|
:max-length 250}]
|
||||||
[:h2 {:on-click on-nav
|
[:h2 {:on-click on-nav
|
||||||
:style {:max-width (str title-width "%")}
|
:style {:max-width (str title-width "%")}
|
||||||
:class (stl/css :project-name)
|
:class (stl/css :project-name)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue