Skip to content

Commit cb80a5f

Browse files
authored
Update template.html.jinja: add padding
1 parent 82d4d56 commit cb80a5f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

template.html.jinja

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@
5757
document.querySelectorAll('.progress-bar').forEach(progressBar => {
5858
const textWidth = progressBar.scrollWidth;
5959
const barWidth = progressBar.offsetWidth;
60+
const padding = 6;
6061
61-
if (barWidth < textWidth) {
62+
if (barWidth < textWidth + padding) {
6263
progressBar.classList.add('low');
6364
} else {
6465
progressBar.classList.remove('low');

0 commit comments

Comments
 (0)