mirror of
https://github.com/penpot/penpot.git
synced 2025-06-04 01:01:38 +02:00
💄 Minor cosmetic fixes.
This commit is contained in:
parent
7efee0f0a9
commit
c19b289ac8
5 changed files with 29 additions and 28 deletions
|
@ -1175,7 +1175,7 @@
|
||||||
"en" : "Store libraries"
|
"en" : "Store libraries"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"workspace.options.canvas_background" : {
|
"workspace.options.canvas-background" : {
|
||||||
"used-in" : [ "src/uxbox/main/ui/workspace/sidebar/options/page.cljs:39" ],
|
"used-in" : [ "src/uxbox/main/ui/workspace/sidebar/options/page.cljs:39" ],
|
||||||
"translations" : {
|
"translations" : {
|
||||||
"en" : "Canvas background"
|
"en" : "Canvas background"
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
(mf/fnc frame-shape
|
(mf/fnc frame-shape
|
||||||
{::mf/wrap-props false}
|
{::mf/wrap-props false}
|
||||||
[props]
|
[props]
|
||||||
(let [children (unchecked-get props "children")
|
(let [childs (unchecked-get props "childs")
|
||||||
shape (unchecked-get props "shape")
|
shape (unchecked-get props "shape")
|
||||||
{:keys [id x y width height]} shape
|
{:keys [id x y width height]} shape
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@
|
||||||
:height height}))]
|
:height height}))]
|
||||||
[:svg {:x x :y y :width width :height height}
|
[:svg {:x x :y y :width width :height height}
|
||||||
[:> "rect" props]
|
[:> "rect" props]
|
||||||
(for [[i item] (d/enumerate children)]
|
(for [[i item] (d/enumerate childs)]
|
||||||
[:& shape-wrapper {:frame shape
|
[:& shape-wrapper {:frame shape
|
||||||
:shape item
|
:shape item
|
||||||
:key (:id item)}])])))
|
:key (:id item)}])])))
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
"The main container for a frame in viewer mode"
|
"The main container for a frame in viewer mode"
|
||||||
(:require
|
(:require
|
||||||
[rumext.alpha :as mf]
|
[rumext.alpha :as mf]
|
||||||
|
[uxbox.common.data :as d]
|
||||||
[uxbox.common.pages :as cp]
|
[uxbox.common.pages :as cp]
|
||||||
[uxbox.main.data.viewer :as dv]
|
[uxbox.main.data.viewer :as dv]
|
||||||
[uxbox.main.refs :as refs]
|
[uxbox.main.refs :as refs]
|
||||||
|
@ -100,7 +101,6 @@
|
||||||
[show-interactions?]
|
[show-interactions?]
|
||||||
(generic-wrapper-factory circle/circle-shape show-interactions?))
|
(generic-wrapper-factory circle/circle-shape show-interactions?))
|
||||||
|
|
||||||
|
|
||||||
(declare shape-container-factory)
|
(declare shape-container-factory)
|
||||||
|
|
||||||
(defn frame-container-factory
|
(defn frame-container-factory
|
||||||
|
@ -171,9 +171,10 @@
|
||||||
(gpt/negate)
|
(gpt/negate)
|
||||||
(gmt/translate-matrix))
|
(gmt/translate-matrix))
|
||||||
|
|
||||||
frame-id (:id frame)
|
|
||||||
modifier-ids (concat [frame-id] (cp/get-children frame-id objects))
|
|
||||||
update-fn #(assoc-in %1 [%2 :modifiers :displacement] modifier)
|
update-fn #(assoc-in %1 [%2 :modifiers :displacement] modifier)
|
||||||
|
|
||||||
|
frame-id (:id frame)
|
||||||
|
modifier-ids (d/concat [frame-id] (cp/get-children frame-id objects))
|
||||||
objects (reduce update-fn objects modifier-ids)
|
objects (reduce update-fn objects modifier-ids)
|
||||||
frame (assoc-in frame [:modifiers :displacement] modifier)
|
frame (assoc-in frame [:modifiers :displacement] modifier)
|
||||||
|
|
||||||
|
|
|
@ -121,5 +121,5 @@
|
||||||
[:*
|
[:*
|
||||||
[:& frame-shape
|
[:& frame-shape
|
||||||
{:shape shape
|
{:shape shape
|
||||||
:children children}]]])))))
|
:childs children}]]])))))
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
options (mf/deref refs/workspace-page-options)
|
options (mf/deref refs/workspace-page-options)
|
||||||
handle-change-color (use-change-color page)]
|
handle-change-color (use-change-color page)]
|
||||||
[:div.element-set
|
[:div.element-set
|
||||||
[:div.element-set-title (t locale "workspace.options.canvas_background")]
|
[:div.element-set-title (t locale "workspace.options.canvas-background")]
|
||||||
[:div.element-set-content
|
[:div.element-set-content
|
||||||
[:& color-row {:disable-opacity true
|
[:& color-row {:disable-opacity true
|
||||||
:value {:value (get options :background "#E8E9EA")
|
:value {:value (get options :background "#E8E9EA")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue