0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-12 01:58:44 -05:00

Use classes instead ids on canvas.

This commit is contained in:
Andrey Antukh 2015-12-28 14:31:17 +02:00
parent 45e63c385f
commit 9db37cfd9b
2 changed files with 10 additions and 4 deletions

View file

@ -95,7 +95,7 @@
item (first _icons/+external+) item (first _icons/+external+)
] ]
(html (html
[:svg#page-canvas [:svg.page-canvas
{:x wb/document-start-x {:x wb/document-start-x
:y wb/document-start-y :y wb/document-start-y
:ref "canvas" :ref "canvas"
@ -105,8 +105,8 @@
;; :on-mouse-up cs/on-mouse-up ;; :on-mouse-up cs/on-mouse-up
} }
(background) (background)
[:svg#page-layout [:svg.page-layout
(shape item)] #_(shape item)]
#_(apply vector :svg#page-layout (map shapes/shape->svg raw-shapes)) #_(apply vector :svg#page-layout (map shapes/shape->svg raw-shapes))
#_(when-let [shape (rum/react drawing)] #_(when-let [shape (rum/react drawing)]
(shapes/shape->drawing-svg shape)) (shapes/shape->drawing-svg shape))

View file

@ -10,7 +10,13 @@
margin-right: 0; margin-right: 0;
} }
#viewport, #page-canvas, #page-layout { .viewport {
&.drawing {
cursor: cell;
}
}
.viewport, .page-canvas, .page-layout {
overflow: visible; overflow: visible;
} }
} }