Skip to content

Commit eeb2ba1

Browse files
committed
Adding Level just next to the node #75
1 parent d697164 commit eeb2ba1

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

force-app/main/default/pages/OrgCheck_Roles_VFP.page

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
d.inactive_show_notif = false;
132132
if (!d.parent) {
133133
// 'I am root...'
134-
d.popup_background_color = helper.html.render.color('gray');
134+
d.popup_background_color = helper.html.render.color('light-gray');
135135
d.clickable = false;
136136
} else if (nodeData) {
137137
const activeCount = nodeData.activeMembersCount;
@@ -151,13 +151,13 @@
151151
const inactiveCount = nodeData.inactiveMembersCount;
152152
d.inactive_count = inactiveCount;
153153
if (inactiveCount > 0) {
154-
d.inactive_background_color = helper.html.render.color('gray');
154+
d.inactive_background_color = helper.html.render.color('light-gray');
155155
if (inactiveCount > 100) {
156156
d.inactive_count = '99+';
157157
}
158158
d.inactive_show_notif = true;
159159
} else {
160-
d.inactive_background_color = helper.html.render.color('dark-gray');
160+
d.inactive_background_color = helper.html.render.color('gray');
161161
}
162162
}
163163
});
@@ -239,11 +239,11 @@
239239
// --------------------------------
240240
node.filter(function(d) { return d.depth > 0; })
241241
.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)
245245
.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; });
247247

248248
// --------------------------------
249249
// NODE CONTENT

force-app/main/default/staticresources/OrgCheck_OrgCheck_SR.resource

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1671,8 +1671,8 @@ const OrgCheck = {
16711671
case 'blue': return '#5fc9f8';
16721672
case 'dark-orange': return '#fd9426';
16731673
case 'orange': return '#fecb2e';
1674+
case 'light-gray': return '#bfc9ca';
16741675
case 'gray': return '#555555';
1675-
case 'dark-gray': return '#6e7273';
16761676
default: return 'red';
16771677
}
16781678
},

0 commit comments

Comments
 (0)