From 459c9a3bb15892f9b2c35354ddcd6c29e669d927 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Wed, 7 Apr 2021 14:28:50 +0200 Subject: [PATCH 1/2] :bug: Adds some guards to viewbox calculation --- common/app/common/geom/shapes/transforms.cljc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/common/app/common/geom/shapes/transforms.cljc b/common/app/common/geom/shapes/transforms.cljc index 088a46a496..3162d233d0 100644 --- a/common/app/common/geom/shapes/transforms.cljc +++ b/common/app/common/geom/shapes/transforms.cljc @@ -289,13 +289,13 @@ "Updates the viewbox for groups imported from SVG's" [{:keys [selrect svg-viewbox] :as group} new-selrect] (let [;; Gets deltas for the selrect to update the svg-viewbox (for svg-imports) - deltas {:x (- (:x new-selrect) (:x selrect)) - :y (- (:y new-selrect) (:y selrect)) - :width (- (:width new-selrect) (:width selrect)) - :height (- (:height new-selrect) (:height selrect))}] + deltas {:x (- (:x new-selrect 0) (:x selrect 0)) + :y (- (:y new-selrect 0) (:y selrect 0)) + :width (- (:width new-selrect 1) (:width selrect 1)) + :height (- (:height new-selrect 1) (:height selrect 1))}] (cond-> group - svg-viewbox + (and (some? svg-viewbox) (some? selrect) (some? new-selrect)) (update :svg-viewbox #(-> % (update :x + (:x deltas)) From e6776925947f3e4056808c7195044d8775145479 Mon Sep 17 00:00:00 2001 From: elhombretecla Date: Wed, 7 Apr 2021 09:16:41 +0200 Subject: [PATCH 2/2] :sparkles: Minor design fixes --- frontend/resources/styles/main/layouts/login.scss | 1 - frontend/src/app/main/ui/settings/sidebar.cljs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/resources/styles/main/layouts/login.scss b/frontend/resources/styles/main/layouts/login.scss index e7c348c23c..03de4ceaac 100644 --- a/frontend/resources/styles/main/layouts/login.scss +++ b/frontend/resources/styles/main/layouts/login.scss @@ -40,7 +40,6 @@ svg { fill: #2C233E; max-width: 11vw; - width: 100%; height: 80px; } } diff --git a/frontend/src/app/main/ui/settings/sidebar.cljs b/frontend/src/app/main/ui/settings/sidebar.cljs index b0850b59b2..6bcba0e028 100644 --- a/frontend/src/app/main/ui/settings/sidebar.cljs +++ b/frontend/src/app/main/ui/settings/sidebar.cljs @@ -87,7 +87,7 @@ [:hr] [:li {:on-click show-release-notes} - i/msg-info + i/pencil [:span.element-title (tr "labels.release-notes")]] (when cf/feedback-enabled