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

This commit is contained in:
Alejandro Alonso 2023-02-22 11:48:41 +01:00
commit 16bd5e2ebc
4 changed files with 4 additions and 5 deletions

View file

@ -81,7 +81,7 @@
(conj (gpt/add base-p (hv (/ min-width 2)))
(gpt/subtract base-p (hv (/ min-width 2))))
(and col? h-center?)
(and col? h-end?)
(conj (gpt/subtract base-p (hv min-width)))
(and row? v-start?)

View file

@ -87,7 +87,7 @@
(watch [it state _]
(let [edition (get-in state [:workspace-local :edition])
drawing (get state :workspace-drawing)]
(when-not (or (some? edition) (not-empty drawing))
(when (and (nil? edition) (or (empty drawing) (= :curve (:tool drawing))))
(let [undo (:workspace-undo state)
items (:items undo)
index (or (:index undo) (dec (count items)))]

View file

@ -439,8 +439,6 @@
[:& presence/active-cursors
{:page-id page-id}])
[:& widgets/viewport-actions]
[:& scroll-bars/viewport-scrollbars
{:objects base-objects
:zoom zoom

View file

@ -56,7 +56,8 @@
drawing-obj (:object drawing)
shape (or drawing-obj (-> selected first))]
(when (or (and (= (count selected) 1) (= (:id shape) edition) (not= :text (:type shape)))
(and (some? drawing-obj) (= :path (:type drawing-obj))))
(and (some? drawing-obj) (= :path (:type drawing-obj))
(not= :curve (:tool drawing))))
[:div.viewport-actions
[:& path-actions {:shape shape}]])))