|
131 | 131 | d.inactive_show_notif = false; |
132 | 132 | if (!d.parent) { |
133 | 133 | // 'I am root...' |
134 | | - d.popup_background_color = helper.html.render.color('gray'); |
| 134 | + d.popup_background_color = helper.html.render.color('light-gray'); |
135 | 135 | d.clickable = false; |
136 | 136 | } else if (nodeData) { |
137 | 137 | const activeCount = nodeData.activeMembersCount; |
|
151 | 151 | const inactiveCount = nodeData.inactiveMembersCount; |
152 | 152 | d.inactive_count = inactiveCount; |
153 | 153 | if (inactiveCount > 0) { |
154 | | - d.inactive_background_color = helper.html.render.color('gray'); |
| 154 | + d.inactive_background_color = helper.html.render.color('light-gray'); |
155 | 155 | if (inactiveCount > 100) { |
156 | 156 | d.inactive_count = '99+'; |
157 | 157 | } |
158 | 158 | d.inactive_show_notif = true; |
159 | 159 | } else { |
160 | | - d.inactive_background_color = helper.html.render.color('dark-gray'); |
| 160 | + d.inactive_background_color = helper.html.render.color('gray'); |
161 | 161 | } |
162 | 162 | } |
163 | 163 | }); |
|
239 | 239 | // -------------------------------- |
240 | 240 | node.filter(function(d) { return d.depth > 0; }) |
241 | 241 | .append('foreignObject') |
242 | | - .attr('x', BOX_PADDING) |
243 | | - .attr('y', - BOX_HEIGHT / 2 - 5) |
244 | | - .attr('width', NOTIF_WIDTH) |
| 242 | + .attr('x', -25) |
| 243 | + .attr('y', -7) |
| 244 | + .attr('width', NOTIF_WIDTH + 35) |
245 | 245 | .attr('height', NOTIF_HEIGHT) |
246 | | - .append('xhtml').html(function(d) { return '<center><b>' + d.depth + '</b></center>'; }); |
| 246 | + .append('xhtml').html(function(d) { return 'Level #' + d.depth; }); |
247 | 247 |
|
248 | 248 | // -------------------------------- |
249 | 249 | // NODE CONTENT |
|
0 commit comments