File tree Expand file tree Collapse file tree 3 files changed +28
-6
lines changed
src/nico/src/nico/components Expand file tree Collapse file tree 3 files changed +28
-6
lines changed Original file line number Diff line number Diff line change 1
1
<template lang="pug">
2
2
draggable.dragArea ( tag ="ul" : list= "children" : group= "group" : clone= "onClone" )
3
3
li( v-for ="child in children" )
4
- div( v-if ="child.type === 'if'" )
4
+ div.if ( v-if ="child.type === 'if'" )
5
5
| if {{ child.condition }}
6
6
Block.child ( :children ="child.children" )
7
7
div( v-else-if ="child.type === 'callMars'" )
@@ -49,13 +49,19 @@ export default {
49
49
}
50
50
</script >
51
51
52
- <style scoped>
52
+ <style lang="scss" scoped>
53
53
.child {
54
54
margin-left : 20px ;
55
55
}
56
56
.dragArea {
57
57
outline : 1px dotted ;
58
58
min-height : 20px ;
59
- padding-bottom : 50px ;
59
+ padding : 10px ;
60
+ }
61
+ .if {
62
+ > .dragArea {
63
+ padding-bottom : 20px ;
64
+ }
65
+ padding-bottom : 15px ;
60
66
}
61
67
</style >
Original file line number Diff line number Diff line change 1
1
<template lang="pug">
2
2
.d-flex
3
- .flex-grow-2
3
+ .flex-grow-2.m-3
4
4
h6.font-weight-bold Control Flow
5
5
Block( :children ="controlFlow" : clone= "true" )
6
- .flex-grow-2
6
+ // mw-35 just for displaying blocksRoot
7
+ .flex-grow-2.m-3.mw-35
7
8
h6.font-weight-bold Nico
8
9
Block( :children ="nicoFuncs" : clone= "true" )
9
10
| {{ blocksRoot }}
@@ -39,3 +40,9 @@ export default {
39
40
},
40
41
}
41
42
</script >
43
+
44
+ <style scoped>
45
+ .mw-35 {
46
+ max-width : 35% ;
47
+ }
48
+ </style >
Original file line number Diff line number Diff line change 3
3
.d-inline ( v-if ="type.type === 'str'" )
4
4
input( v-bind:value ="value" v-on:input ="$emit('input', $event.target.value)" )
5
5
.d-inline ( v-if ="type.type === 'num'" )
6
- input.w-25 (
6
+ input.num (
7
7
type ="number"
8
8
v-bind:value ="value"
9
9
v-on:input ="$emit('input', Number($event.target.value))"
@@ -25,3 +25,12 @@ export default {
25
25
},
26
26
}
27
27
</script >
28
+
29
+ <style scoped>
30
+ .num {
31
+ width : 75px ;
32
+ outline : solid 1px ;
33
+ margin : 0 5px ;
34
+ }
35
+ </style >
36
+
You can’t perform that action at this time.
0 commit comments