Skip to content

Commit 4b8aa62

Browse files
committed
fix grid index
1 parent 97a93be commit 4b8aa62

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/renderer/element/impl/container/canvas.cljs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@
7575
(map (fn [{:keys [id tag attrs]}] [:filter {:id id :key id} [tag attrs]])
7676
filters/accessibility)]
7777

78+
(when grid [ruler.v/grid])
79+
7880
(when-not read-only?
7981
[:<>
8082
[tool.hierarchy/render (or primary-tool active-tool)]
@@ -85,9 +87,7 @@
8587
(when snapped-el
8688
[svg/bounding-box (:bbox snapped-el) true])
8789
(when nearest-neighbor
88-
[snap.v/canvas-label nearest-neighbor])])
89-
90-
(when grid [ruler.v/grid])]))
90+
[snap.v/canvas-label nearest-neighbor])])]))
9191

9292
(defmethod hierarchy/render-to-string :canvas
9393
[el]

0 commit comments

Comments
 (0)