add some table margin, make graphviewport bigger

This commit is contained in:
flynn 2019-01-12 02:04:48 +01:00
parent 3b4b0e1c46
commit 174b34e298
3 changed files with 5 additions and 42 deletions

View file

@ -3,44 +3,7 @@ body {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
height: 100%; height: 100%;
} }
nav {
margin-bottom: 20px;
}
.grid-container {
display: grid;
grid-template-columns: 1fr 1fr;
}
.grid-item{
margin-left: 20px;
margin-bottom: 20px;
}
.item-container{
/*https://medium.com/@js_tut/new-things-css-grid-brings-to-the-table-e465cb5d2841*/
display: grid;
/*grid-template-rows: 100px 100px;*/
grid-template-columns: 100px 100px;
grid-gap: 10px;
justify-items: unset;
padding: 0 0 20px 10px;
}
.item {
justify-content: start;
border: 1px solid #b1b1b1;
align-items: start;
padding: 10px;
}
select {
margin-bottom: 10px;
}
.input-container{
display: grid;
grid-template-columns: 1fr 1fr;
}
.input-item {
table {
margin-top: 2em;
} }

View file

@ -1,7 +1,7 @@
{ {
"$schema": "https://vega.github.io/schema/vega/v4.json", "$schema": "https://vega.github.io/schema/vega/v4.json",
"width": 400, "width": 700,
"height": 300, "height": 400,
"padding": { "padding": {
"top": 25, "top": 25,
"left": 0, "left": 0,

View file

@ -59,7 +59,7 @@
(-> usr (-> usr
(dissoc :gender :id) (dissoc :gender :id)
(assoc :index (get id-index-map (:id usr))) (assoc :index (get id-index-map (:id usr)))
(assoc :group (rand-int 2))))))] (assoc :group (rand-int 5))))))]
(response/ok {:nodes nodes-indexed (response/ok {:nodes nodes-indexed
:links rels-indexed}))) :links rels-indexed})))
(POST "/relations" req (POST "/relations" req