From a4c104d5ba6e47ae4824f22bc094c34c6925d8f5 Mon Sep 17 00:00:00 2001 From: Jeff Wang Date: Fri, 4 May 2018 12:48:54 -0700 Subject: [PATCH] If any label in the tooltip overflows, hide it. (#445) --- frontend/src/scalars/ui/Chart.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/scalars/ui/Chart.vue b/frontend/src/scalars/ui/Chart.vue index eb242438..d938c146 100644 --- a/frontend/src/scalars/ui/Chart.vue +++ b/frontend/src/scalars/ui/Chart.vue @@ -662,7 +662,7 @@ export default { Relative: 4, }; let widthPropMap = { - Run: 40, + Run: 60, Time: 120, Step: 40, Value: 50, @@ -694,13 +694,13 @@ export default { let content = transformedData.map((item) => { let str = ''; str += Object.keys(item).map((val) => { - return '' + item[val] + ''; + return '' + item[val] + ''; }).join(''); str += ''; return str; }).join(''); - return '' + headerHtml + '' + return '
' + headerHtml + '' + '' + content + '
'; }, }, -- GitLab