Skip to content

Commit

Permalink
Fix display issues on web instance
Browse files Browse the repository at this point in the history
  • Loading branch information
lowlighter committed Feb 3, 2021
1 parent 1becb62 commit 8e3ad79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion source/app/web/statics/app.placeholder.js
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@
}
data.f.percentage = function (n, {rescale = true} = {}) {
return `${(n*(rescale ? 100 : 1)).toFixed(2)
.replace(/(?<=[.])([1-9]*)(0+)$/, (m, a, b) => a)
.replace(/[.]([1-9]*)(0+)$/, (m, a, b) => `.${a}`)
.replace(/[.]$/, "")}%`
}
data.f.ellipsis = function (text, {length = 20} = {}) {
Expand Down
1 change: 1 addition & 0 deletions source/templates/classic/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@
align-items: center;
flex-direction: row;
width: 100%;
min-height: 1rem;
}

.chart-bars.horizontal .entry .name {
Expand Down

0 comments on commit 8e3ad79

Please sign in to comment.