add more space between nodes using auto-layout
This commit is contained in:
parent
74630c2631
commit
ce7c88c78c
6 changed files with 6 additions and 6 deletions
|
@ -293,7 +293,6 @@ Metamaps.Create = {
|
||||||
Metamaps.Create.newTopic.pinned = false
|
Metamaps.Create.newTopic.pinned = false
|
||||||
}
|
}
|
||||||
$('#topic_name').typeahead('val', '')
|
$('#topic_name').typeahead('val', '')
|
||||||
Metamaps.Create.newTopic.beingCreated = false
|
|
||||||
Metamaps.Create.newTopic.hideSelector()
|
Metamaps.Create.newTopic.hideSelector()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -247,7 +247,7 @@ Metamaps.Map = {
|
||||||
var nextX = self.nextX
|
var nextX = self.nextX
|
||||||
var nextY = self.nextY
|
var nextY = self.nextY
|
||||||
|
|
||||||
var DISTANCE_BETWEEN = 120
|
var DISTANCE_BETWEEN = 250
|
||||||
|
|
||||||
self.nextX = self.nextX + DISTANCE_BETWEEN * self.nextXshift
|
self.nextX = self.nextX + DISTANCE_BETWEEN * self.nextXshift
|
||||||
self.nextY = self.nextY + DISTANCE_BETWEEN * self.nextYshift
|
self.nextY = self.nextY + DISTANCE_BETWEEN * self.nextYshift
|
||||||
|
|
BIN
app/assets/stylesheets/.application.css.erb.swp
Normal file
BIN
app/assets/stylesheets/.application.css.erb.swp
Normal file
Binary file not shown.
|
@ -606,8 +606,8 @@ button.button.btn-no:hover {
|
||||||
background-image: url(<%= asset_data_uri('pincarousel_sprite.png') %>);
|
background-image: url(<%= asset_data_uri('pincarousel_sprite.png') %>);
|
||||||
position: absolute;
|
position: absolute;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
top: 20px;
|
top: -20px;
|
||||||
right: 16px;
|
right: -16px;
|
||||||
}
|
}
|
||||||
.pinCarousel:hover {
|
.pinCarousel:hover {
|
||||||
background-position: 0 -16px;
|
background-position: 0 -16px;
|
||||||
|
|
|
@ -31,6 +31,7 @@
|
||||||
Metamaps.Create.newSelectedMetacodeNames.push("<%= metacode.name %>");
|
Metamaps.Create.newSelectedMetacodeNames.push("<%= metacode.name %>");
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
Metamaps.Create.newTopic.metacode = <%= user_metacode().id %>
|
||||||
<% current_user.recentMetacodes.each do |id| %>
|
<% current_user.recentMetacodes.each do |id| %>
|
||||||
Metamaps.Create.recentMetacodes.push(<%= id %>);
|
Metamaps.Create.recentMetacodes.push(<%= id %>);
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
|
@ -62,11 +62,11 @@ class MetacodeSelect extends Component {
|
||||||
} else if (activeTab == 1) { // recent
|
} else if (activeTab == 1) { // recent
|
||||||
selectMetacodes = recent.map(id => {
|
selectMetacodes = recent.map(id => {
|
||||||
return metacodes.find(m => m.id == id)
|
return metacodes.find(m => m.id == id)
|
||||||
})
|
}).filter(m => m)
|
||||||
} else if (activeTab == 2) { // mostUsed
|
} else if (activeTab == 2) { // mostUsed
|
||||||
selectMetacodes = mostUsed.map(id => {
|
selectMetacodes = mostUsed.map(id => {
|
||||||
return metacodes.find(m => m.id == id)
|
return metacodes.find(m => m.id == id)
|
||||||
})
|
}).filter(m => m)
|
||||||
}
|
}
|
||||||
return selectMetacodes
|
return selectMetacodes
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue