Skip to content

Commit

Permalink
fix error when display units in web version
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-mcgann committed Oct 3, 2024
1 parent d5f4306 commit 9128ba2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions web/zc.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
color: rgb(127,127,127);
}

.unit {
color: rgb(127,127,127);
}

@font-face {
font-family: "Inconsolata";
src: url("Inconsolata-Regular.ttf")
Expand Down
2 changes: 1 addition & 1 deletion web/zc.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ function annotate(l) {
}
text += l.value
if ( l.unit) {
text = `${text}${unit}`
text = `${text}<span class='unit'>${l.unit}</unit>`
}
return text
}
Expand Down

0 comments on commit 9128ba2

Please sign in to comment.