From fb6d37d122ee69af676e455a79b63e3dadcf64bd Mon Sep 17 00:00:00 2001 From: jaden <noreply@example.com> Date: Fri, 9 Jun 2017 11:34:43 +0200 Subject: [PATCH] add styling to plot widget unmerged labels, fixes #43 --- beat/web/experiments/static/experiments/js/utils.js | 4 +++- beat/web/reports/static/reports/css/style.css | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/beat/web/experiments/static/experiments/js/utils.js b/beat/web/experiments/static/experiments/js/utils.js index eee1b7264..a27fb8994 100644 --- a/beat/web/experiments/static/experiments/js/utils.js +++ b/beat/web/experiments/static/experiments/js/utils.js @@ -195,7 +195,9 @@ beat.experiments.utils.displayPlot = function( var td_title = document.createElement('td'); td_title.className = 'td_title'; - td_title.textContent = _data.legend; + const title_h2 = document.createElement('h2'); + title_h2.textContent = _data.legend; + td_title.appendChild(title_h2); tr_title.appendChild(td_title); } // adds image place holder diff --git a/beat/web/reports/static/reports/css/style.css b/beat/web/reports/static/reports/css/style.css index fd5dede61..0440251a9 100644 --- a/beat/web/reports/static/reports/css/style.css +++ b/beat/web/reports/static/reports/css/style.css @@ -210,3 +210,8 @@ div.report_commands div.report_buttons_bloc .publish_report:hover background-image: linear-gradient(#499bea, #4f85bb); border-color: #4f85bb; } + +.td_title > h2 { + margin-left: 20px; + margin-bottom: 0; +} -- GitLab