From c321a1181c92a20bbc8aa388198a46cd8561eaa1 Mon Sep 17 00:00:00 2001 From: hufangzhou <746775970@qq.com> Date: Tue, 22 Sep 2020 10:09:49 +0800 Subject: [PATCH] * Adjust the display of the burn chart. --- module/project/css/burn.css | 1 + module/project/js/burn.js | 4 ++-- module/project/view/burn.html.php | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/module/project/css/burn.css b/module/project/css/burn.css index 4e520bcf0b..86eead0a3e 100644 --- a/module/project/css/burn.css +++ b/module/project/css/burn.css @@ -1,6 +1,7 @@ .main-content > h2 {font-size: 16px;} #burnWrapper {max-width: 1200px; margin: 0 auto; padding: 25px 100px 10px; position: relative;} #burnYUnit {position: absolute; color: #CBD0DB; top: 0; left: 90px;} +#burnXUnit {position: absolute; color: #CBD0DB; bottom: 20px; right: 60px;} #burnLegend {position: absolute; right: 0; width: 80px; height: 60px; top: 50%; margin-top: -30px; line-height: 30px; color: #838A9D; font-size: 12px;} #burnLegend > div {position: relative; padding-left: 30px;} #burnLegend > div > .barline {position: absolute; width: 20px; left: 0; top: 13px; height: 3px; background: #EEEEEE;} diff --git a/module/project/js/burn.js b/module/project/js/burn.js index bc66020741..6b4a64966f 100644 --- a/module/project/js/burn.js +++ b/module/project/js/burn.js @@ -20,8 +20,8 @@ function downloadBurn() /* Add watermark */ var canvas = document.querySelector('#cloneCanvas #burnCanvas'); var cans = canvas.getContext('2d'); - canvas.height = 525; - canvas.width = 1050; + canvas.height = canvas.height + 25; + canvas.width = canvas.width + 50; // Set background color to white cans.fillStyle = '#fff'; diff --git a/module/project/view/burn.html.php b/module/project/view/burn.html.php index 25f2231f3d..40db101c11 100644 --- a/module/project/view/burn.html.php +++ b/module/project/view/burn.html.php @@ -48,6 +48,7 @@
project->storyPoint})" : "({$lang->project->workHour})";?>
+
project->burnXUnit;?>
project->charts->burn->graph->reference;?>
project->charts->burn->graph->actuality;?>