Skip to content

Commit 348e0e5

Browse files
committed
JS: rename textWidth variable to barWithOverflowWidth
1 parent 8f071dc commit 348e0e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

template.html.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@
5353
<script>
5454
function updateProgressBarVisibility() {
5555
document.querySelectorAll('.progress-bar').forEach(progressBar => {
56-
const textWidth = progressBar.scrollWidth;
56+
const barWithOverflowWidth = progressBar.scrollWidth;
5757
const barWidth = progressBar.offsetWidth;
5858
59-
if (barWidth < textWidth) {
59+
if (barWidth < barWithOverflowWidth) {
6060
progressBar.classList.add('low');
6161
} else {
6262
progressBar.classList.remove('low');

0 commit comments

Comments
 (0)