mirror of
https://github.com/penpot/penpot.git
synced 2025-02-03 12:59:12 -05:00
add nodes style and fix cards size
This commit is contained in:
parent
530acfe571
commit
b16d12f67c
2 changed files with 6 additions and 3 deletions
|
@ -94,9 +94,11 @@
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
height: 150px;
|
height: 200px;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin: $medium $medium 0 $medium;
|
margin: $medium $medium 0 $medium;
|
||||||
|
max-width: 300px;
|
||||||
|
min-width: 260px;
|
||||||
padding: $medium;
|
padding: $medium;
|
||||||
position: relative;
|
position: relative;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
|
@ -167,9 +167,10 @@
|
||||||
(start-path-edition id index))]
|
(start-path-edition id index))]
|
||||||
[:g.controls
|
[:g.controls
|
||||||
(for [[index {:keys [x y]}] (map-indexed vector points)]
|
(for [[index {:keys [x y]}] (map-indexed vector points)]
|
||||||
[:circle {:cx x :cy y :r 3
|
[:circle {:cx x :cy y :r 6
|
||||||
:on-mouse-down (partial on-mouse-down index)
|
:on-mouse-down (partial on-mouse-down index)
|
||||||
:fill "red"}])]))
|
:fill "#31e6e0"
|
||||||
|
:stroke "#28c4d4"}])]))
|
||||||
|
|
||||||
(mx/defc selection-handlers
|
(mx/defc selection-handlers
|
||||||
{:mixins [mx/reactive mx/static]}
|
{:mixins [mx/reactive mx/static]}
|
||||||
|
|
Loading…
Add table
Reference in a new issue