Skip to content

Commit 2ed7f89

Browse files
committed
Fix html() falsy-0 bug causing resource bars to show full and labels to omit zero values
1 parent bd485f1 commit 2ed7f89

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

public/css/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1674,7 +1674,7 @@ tbody tr:hover {
16741674
border-radius: 99px;
16751675
background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
16761676
transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
1677-
width: 100%;
1677+
width: 0%;
16781678
position: relative;
16791679
}
16801680

public/js/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function gravatarUrl(email, size = 32) {
8888
}
8989

9090
function html(strings, ...values) {
91-
return strings.reduce((acc, str, i) => acc + str + (values[i] || ''), '');
91+
return strings.reduce((acc, str, i) => acc + str + (values[i] ?? ''), '');
9292
}
9393

9494
async function api(path, options = {}) {

0 commit comments

Comments
 (0)