From ce7c88c78c79b1dccb7643a859cd40b17bf2bbc2 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Tue, 20 Sep 2016 12:27:46 -0400 Subject: [PATCH] add more space between nodes using auto-layout --- app/assets/javascripts/src/Metamaps.Create.js | 1 - app/assets/javascripts/src/Metamaps.Map.js | 2 +- app/assets/stylesheets/.application.css.erb.swp | Bin 0 -> 86016 bytes app/assets/stylesheets/application.css.erb | 4 ++-- app/views/maps/_newtopic.html.erb | 1 + frontend/src/components/MetacodeSelect.js | 4 ++-- 6 files changed, 6 insertions(+), 6 deletions(-) create mode 100644 app/assets/stylesheets/.application.css.erb.swp diff --git a/app/assets/javascripts/src/Metamaps.Create.js b/app/assets/javascripts/src/Metamaps.Create.js index 29dccb09..f009eecb 100644 --- a/app/assets/javascripts/src/Metamaps.Create.js +++ b/app/assets/javascripts/src/Metamaps.Create.js @@ -293,7 +293,6 @@ Metamaps.Create = { Metamaps.Create.newTopic.pinned = false } $('#topic_name').typeahead('val', '') - Metamaps.Create.newTopic.beingCreated = false Metamaps.Create.newTopic.hideSelector() } }, diff --git a/app/assets/javascripts/src/Metamaps.Map.js b/app/assets/javascripts/src/Metamaps.Map.js index 1c3c638d..2fb4c575 100644 --- a/app/assets/javascripts/src/Metamaps.Map.js +++ b/app/assets/javascripts/src/Metamaps.Map.js @@ -247,7 +247,7 @@ Metamaps.Map = { var nextX = self.nextX var nextY = self.nextY - var DISTANCE_BETWEEN = 120 + var DISTANCE_BETWEEN = 250 self.nextX = self.nextX + DISTANCE_BETWEEN * self.nextXshift self.nextY = self.nextY + DISTANCE_BETWEEN * self.nextYshift diff --git a/app/assets/stylesheets/.application.css.erb.swp b/app/assets/stylesheets/.application.css.erb.swp new file mode 100644 index 0000000000000000000000000000000000000000..2a1d73641c936d5116dfda6f736062e8bd71193c GIT binary patch literal 86016 zcmeIb2Yh5z+4vtsDS`zQ6-B&kz@=nnQ@3PkTVZt<7Ir~VAxtKdWZcP2n3-$=u>*qm zDj*%{9Z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1R|WI`PodA>2e-m^LHz$ufs^1c zD8l;Q5W;Je{1Ao~EyIe?GAFX3SjUjVTSTmZ5b;6MHPYh<(7W1CV)t+57)F_#@l}--Qd|co17b9&&In>;tkcU|VC#_%k9|AX*zxDBp`^FYoDJR6P&nd|QZ*#l7a|9dCceE`CJ|8B(& z@MSm|J`N?2dH(sZBUoF(=6v1^{)rtx_5i#Sz6W0h*(=}@I06m^ndg^%|75>_7q9{R z4sL@h;dD3>hC%EEU9b(j0qlJLSFi(!-~SuS9z^dd}(pY-7&cw%h!AKPowX~W)qwzjGfu{qhC_rbnQ5?6Pg_*qd=py zV+)5=S<|iR6r|U3SCEI)+`b&&Q(?asb8HvZef;UTW+paq8K`jl+9rP> zxpL+Y=2bcJhyB2D=;Y7(aAY02|dn@-li}23RhZB z9+M~SsYxmanrBa&6|~1me$4i3T~x<)r*qY*aXvu3=Rf8CVan!Z&9=KTNtpRXqN3EbmLSz2c&Gz)L0$T zC)i)!^t&_uISI&RdqU~UtJMj6R10esR;oC2mq*9yX6<{t{fu*?>1W#546Au)QtPK2 z=o*`G*y}G#)W>DP4A-<|O+A!&TWf2X&kJ~>H#f*4AWG9LA#7f7 z={aNu$_9PR=KQ25CDn^l=C6aoHOJTmsqwXNa`ATB*1xcoD9^>^bShqZV^`gb?eP2t zg+YI;OSyR(Y+JWok?)DjI#H4Sl6^p); position: absolute; z-index: 2; - top: 20px; - right: 16px; + top: -20px; + right: -16px; } .pinCarousel:hover { background-position: 0 -16px; diff --git a/app/views/maps/_newtopic.html.erb b/app/views/maps/_newtopic.html.erb index 4e3644ab..416191c6 100644 --- a/app/views/maps/_newtopic.html.erb +++ b/app/views/maps/_newtopic.html.erb @@ -31,6 +31,7 @@ Metamaps.Create.newSelectedMetacodeNames.push("<%= metacode.name %>"); <% end %> <% end %> +Metamaps.Create.newTopic.metacode = <%= user_metacode().id %> <% current_user.recentMetacodes.each do |id| %> Metamaps.Create.recentMetacodes.push(<%= id %>); <% end %> diff --git a/frontend/src/components/MetacodeSelect.js b/frontend/src/components/MetacodeSelect.js index e8cde277..e71a3614 100644 --- a/frontend/src/components/MetacodeSelect.js +++ b/frontend/src/components/MetacodeSelect.js @@ -62,11 +62,11 @@ class MetacodeSelect extends Component { } else if (activeTab == 1) { // recent selectMetacodes = recent.map(id => { return metacodes.find(m => m.id == id) - }) + }).filter(m => m) } else if (activeTab == 2) { // mostUsed selectMetacodes = mostUsed.map(id => { return metacodes.find(m => m.id == id) - }) + }).filter(m => m) } return selectMetacodes }