Fix display issues on web instance

This commit is contained in:
lowlighter
2021-02-03 12:43:21 +01:00
parent 1becb62d84
commit 8e3ad79f23
2 changed files with 2 additions and 1 deletions

View File

@@ -620,7 +620,7 @@
} }
data.f.percentage = function (n, {rescale = true} = {}) { data.f.percentage = function (n, {rescale = true} = {}) {
return `${(n*(rescale ? 100 : 1)).toFixed(2) return `${(n*(rescale ? 100 : 1)).toFixed(2)
.replace(/(?<=[.])([1-9]*)(0+)$/, (m, a, b) => a) .replace(/[.]([1-9]*)(0+)$/, (m, a, b) => `.${a}`)
.replace(/[.]$/, "")}%` .replace(/[.]$/, "")}%`
} }
data.f.ellipsis = function (text, {length = 20} = {}) { data.f.ellipsis = function (text, {length = 20} = {}) {

View File

@@ -382,6 +382,7 @@
align-items: center; align-items: center;
flex-direction: row; flex-direction: row;
width: 100%; width: 100%;
min-height: 1rem;
} }
.chart-bars.horizontal .entry .name { .chart-bars.horizontal .entry .name {