Merge remote-tracking branch 'origin/staging' into develop

This commit is contained in:
Alejandro Alonso 2023-05-24 11:00:54 +02:00
commit 2801431fab
11 changed files with 40 additions and 10 deletions

View file

@ -25,6 +25,15 @@
- Dashboard search, set focus after shortcut (by @akshay-gupta7) [Github #3196](https://github.com/penpot/penpot/pull/3196) - Dashboard search, set focus after shortcut (by @akshay-gupta7) [Github #3196](https://github.com/penpot/penpot/pull/3196)
- Library name dropdown arrow is overlapped by library name (by @ondrejkonec) [Taiga #5200](https://tree.taiga.io/project/penpot/issue/5200) - Library name dropdown arrow is overlapped by library name (by @ondrejkonec) [Taiga #5200](https://tree.taiga.io/project/penpot/issue/5200)
## 1.18.4
### :bug: Bugs fixed
- 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 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

View file

@ -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;

View file

@ -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 {

View file

@ -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,

View file

@ -334,9 +334,11 @@
(->> (map :id starting-flows) (->> (map :id starting-flows)
(reduce ctp/remove-flow flows))))))] (reduce ctp/remove-flow flows))))))]
(rx/of (dc/detach-comment-thread ids) (rx/of (dwu/start-undo-transaction undo-id)
(dc/detach-comment-thread ids)
(dch/commit-changes changes)
(ptk/data-event :layout/update all-parents) (ptk/data-event :layout/update all-parents)
(dch/commit-changes changes)))) (dwu/commit-undo-transaction undo-id))))
(defn create-and-add-shape (defn create-and-add-shape
[type frame-x frame-y data] [type frame-x frame-y data]

View file

@ -1316,7 +1316,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])])

View file

@ -509,7 +509,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
@ -527,7 +527,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")]

View file

@ -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)

View file

@ -361,9 +361,10 @@
(fn [event] (fn [event]
(let [event (.getBrowserEvent ^js event) (let [event (.getBrowserEvent ^js event)
target (dom/get-target event) target (dom/get-target event)
mod? (kbd/mod? event)] mod? (kbd/mod? event)
picking-color? (= "pixel-overlay" (.-id target))]
(when (uwvv/inside-viewport? target) (when (or (uwvv/inside-viewport? target) picking-color?)
(dom/prevent-default event) (dom/prevent-default event)
(dom/stop-propagation event) (dom/stop-propagation event)
(let [raw-pt (dom/get-client-position event) (let [raw-pt (dom/get-client-position event)

View file

@ -211,7 +211,8 @@
[:* [:*
[:div.pixel-overlay [:div.pixel-overlay
{:tab-index 0 {:id "pixel-overlay"
:tab-index 0
:style {:cursor cur/picker} :style {:cursor cur/picker}
:on-pointer-down handle-pointer-down-picker :on-pointer-down handle-pointer-down-picker
:on-pointer-up handle-pointer-up-picker :on-pointer-up handle-pointer-up-picker

View file

@ -95,7 +95,7 @@
:height #(get-size :height %)} :height #(get-size :height %)}
:multi {:r1 [:r1 :r2 :r3 :r4]}} :multi {:r1 [:r1 :r2 :r3 :r4]}}
:fill {:props [:fills] :fill {:props [:fills]
:to-prop {:fills (if (> (count (:fills shape)) 1) "background-image" "background")} :to-prop {:fills (if (> (count (:fills shape)) 1) "background-image" "background-color")}
:format {:fills format-fill-color}} :format {:fills format-fill-color}}
:stroke {:props [:strokes] :stroke {:props [:strokes]
:to-prop {:strokes "border"} :to-prop {:strokes "border"}