mirror of
https://github.com/penpot/penpot.git
synced 2025-05-20 02:46:09 +02:00
🐛 Fix extra long names on typography assets
This commit is contained in:
parent
fbfff07dec
commit
defec189e2
7 changed files with 23 additions and 5 deletions
|
@ -6,12 +6,13 @@
|
||||||
|
|
||||||
- Fix zooming while color picker breaks UI [GH #3214](https://github.com/penpot/penpot/issues/3214)
|
- Fix zooming while color picker breaks UI [GH #3214](https://github.com/penpot/penpot/issues/3214)
|
||||||
- Fix problem with layout not reflowing on shape deletion [Taiga #5289](https://tree.taiga.io/project/penpot/issue/5289)
|
- Fix problem with layout not reflowing on shape deletion [Taiga #5289](https://tree.taiga.io/project/penpot/issue/5289)
|
||||||
|
- Fix extra long typography names on assets and palette [Taiga #5199](https://tree.taiga.io/project/penpot/issue/5199)
|
||||||
|
- Fix background-color property on inspect code [Taiga #5300](https://tree.taiga.io/project/penpot/issue/5300)
|
||||||
|
|
||||||
## 1.18.3
|
## 1.18.3
|
||||||
|
|
||||||
### :bug: Bugs fixed
|
### :bug: Bugs fixed
|
||||||
|
|
||||||
- Fix background-color property on inspect code [Taiga #5300](https://tree.taiga.io/project/penpot/issue/5300)
|
|
||||||
- Fix problem with rulers not placing correctly [Taiga #5093](https://tree.taiga.io/project/penpot/issue/5093)
|
- Fix problem with rulers not placing correctly [Taiga #5093](https://tree.taiga.io/project/penpot/issue/5093)
|
||||||
- Fix page context menu [Taiga #5145](https://tree.taiga.io/project/penpot/issue/5145)
|
- Fix page context menu [Taiga #5145](https://tree.taiga.io/project/penpot/issue/5145)
|
||||||
- Fix project file count [Taiga #5148](https://tree.taiga.io/project/penpot/issue/5148)
|
- Fix project file count [Taiga #5148](https://tree.taiga.io/project/penpot/issue/5148)
|
||||||
|
|
|
@ -434,6 +434,14 @@
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
|
.name-block {
|
||||||
|
color: $color-gray-20;
|
||||||
|
width: calc(100% - 24px - #{$size-2});
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
& span {
|
& span {
|
||||||
margin-left: $size-1;
|
margin-left: $size-1;
|
||||||
color: $color-gray-30;
|
color: $color-gray-30;
|
||||||
|
|
|
@ -1095,7 +1095,10 @@
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
font-size: $fs11;
|
font-size: $fs11;
|
||||||
margin-top: 4px;
|
margin-top: 4px;
|
||||||
|
max-width: calc(var(--width, 256px) - 100px);
|
||||||
|
overflow: hidden;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
.element-set-actions-button svg {
|
.element-set-actions-button svg {
|
||||||
|
|
|
@ -9,6 +9,10 @@
|
||||||
|
|
||||||
& .typography-name {
|
& .typography-name {
|
||||||
color: $color-white;
|
color: $color-white;
|
||||||
|
max-width: 160px;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
& .typography-font,
|
& .typography-font,
|
||||||
|
|
|
@ -1280,7 +1280,8 @@
|
||||||
:auto-focus true
|
:auto-focus true
|
||||||
:default-value (cph/merge-path-item (:path color) (:name color))}]
|
:default-value (cph/merge-path-item (:path color) (:name color))}]
|
||||||
|
|
||||||
[:div.name-block {:on-double-click rename-color-clicked}
|
[:div.name-block {:title (:name color)
|
||||||
|
:on-double-click rename-color-clicked}
|
||||||
(:name color)
|
(:name color)
|
||||||
(when-not (= (:name color) default-name)
|
(when-not (= (:name color) default-name)
|
||||||
[:span default-name])])
|
[:span default-name])])
|
||||||
|
|
|
@ -499,7 +499,7 @@
|
||||||
:font-weight (:font-weight typography)
|
:font-weight (:font-weight typography)
|
||||||
:font-style (:font-style typography)}}
|
:font-style (:font-style typography)}}
|
||||||
(tr "workspace.assets.typography.sample")]
|
(tr "workspace.assets.typography.sample")]
|
||||||
[:div.typography-name (:name typography)]]
|
[:div.typography-name {:title (:name typography)}(:name typography)]]
|
||||||
[:div.element-set-actions
|
[:div.element-set-actions
|
||||||
(when on-detach
|
(when on-detach
|
||||||
[:div.element-set-actions-button
|
[:div.element-set-actions-button
|
||||||
|
@ -517,7 +517,7 @@
|
||||||
(if (not editable?)
|
(if (not editable?)
|
||||||
[:div.element-set-content.typography-read-only-data
|
[:div.element-set-content.typography-read-only-data
|
||||||
[:div.row-flex.typography-name
|
[:div.row-flex.typography-name
|
||||||
[:span (:name typography)]]
|
[:span {:title (:name typography)} (:name typography)]]
|
||||||
|
|
||||||
[:div.row-flex
|
[:div.row-flex
|
||||||
[:span.label (tr "workspace.assets.typography.font-id")]
|
[:span.label (tr "workspace.assets.typography.font-id")]
|
||||||
|
|
|
@ -42,7 +42,8 @@
|
||||||
:attrs attrs}))
|
:attrs attrs}))
|
||||||
selected-ids))))]
|
selected-ids))))]
|
||||||
|
|
||||||
[:div.typography-item {:on-click handle-click}
|
[:div.typography-item {:title (:name typography)
|
||||||
|
:on-click handle-click}
|
||||||
[:div.typography-name
|
[:div.typography-name
|
||||||
{:style {:font-family (:font-family typography)
|
{:style {:font-family (:font-family typography)
|
||||||
:font-weight (:font-weight typography)
|
:font-weight (:font-weight typography)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue