Skills: Fix skills wheel responsiveness, badge size and wrong skills colors - refs #3732

pull/3893/head
carlos alvarado 4 years ago committed by GitHub
parent 5c0ccc4b70
commit 52b70ea837
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. BIN
      main/img/icons/64/badges-default.png
  2. 3
      main/inc/ajax/skill.ajax.php
  3. 6
      main/template/default/skill/skill_wheel.js.tpl

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

@ -157,6 +157,9 @@ switch ($action) {
}
break;
case 'get_all_user_skills':
if (strpos($_SERVER['HTTP_REFERER'], "/main/admin/skills_wheel.php") !== false) {
$userId = 0;
}
$skills = $skill->getUserSkills($userId, true);
echo json_encode($skills);
break;

@ -455,7 +455,7 @@ function load_nodes(load_skill_id, main_depth, extra_parent_id) {
var vis = div.append("svg")
//.attr("class", "Blues")
.attr("width", '100%')
.attr("height", '100%')
.attr("height", $(window).height())
.attr('viewBox', '0 0 ' + (w + padding * 2) + ' ' + (h + padding * 2))
.append("g")
.attr("transform", "translate(" + (r + padding) + "," + (r/reduce_top + padding) + ")");
@ -466,6 +466,10 @@ function load_nodes(load_skill_id, main_depth, extra_parent_id) {
.attr("id", "intro")
.text("{{ "ClickToZoom"|get_lang }}");
$( window ).resize(function() {
$( "#skill_wheel svg" )
.attr("height", $(window).height());
});
/* Generate the partition layout */
var partition = d3.layout.partition()
.sort(null)

Loading…
Cancel
Save