From 23e7116b2475f559bd8142ce96d08bc9adca10ab Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Tue, 30 Dec 2025 14:28:10 +0100 Subject: [PATCH] :bug: Fix problem with style in fonts input --- CHANGES.md | 1 + frontend/src/app/main/ui/dashboard/fonts.cljs | 4 +++- frontend/src/app/main/ui/dashboard/fonts.scss | 3 +++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index e890be0fc4..9be19f2411 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -5,6 +5,7 @@ ### :bug: Bugs fixed - Fix setting a portion of text as bold or underline messes things up [Github #7980](https://github.com/penpot/penpot/issues/7980) +- Fix problem with style in fonts input [Taiga #12935](https://tree.taiga.io/project/penpot/issue/12935) ## 2.12.0 diff --git a/frontend/src/app/main/ui/dashboard/fonts.cljs b/frontend/src/app/main/ui/dashboard/fonts.cljs index 3e1b421cd0..f84d694893 100644 --- a/frontend/src/app/main/ui/dashboard/fonts.cljs +++ b/frontend/src/app/main/ui/dashboard/fonts.cljs @@ -360,7 +360,9 @@ (st/emit! (modal/show options)))))] [:div {:class (stl/css :font-item :table-row)} - [:div {:class (stl/css :table-field :family)} + [:div {:class (stl/css-case :table-field true + :family true + :is-edition edition?)} (if ^boolean edition? [:input {:type "text" :auto-focus true diff --git a/frontend/src/app/main/ui/dashboard/fonts.scss b/frontend/src/app/main/ui/dashboard/fonts.scss index 8a064213df..f3d195b35b 100644 --- a/frontend/src/app/main/ui/dashboard/fonts.scss +++ b/frontend/src/app/main/ui/dashboard/fonts.scss @@ -126,6 +126,9 @@ @include twoLineTextEllipsis; min-width: $sz-200; width: $sz-200; + &.is-edition { + overflow: visible; + } } > .filenames {