1
1
mirror of https://github.com/rsms/inter.git synced 2024-11-23 11:43:47 +03:00

website: rounding of dynamic tracking on front page

This commit is contained in:
Rasmus Andersson 2018-10-21 16:11:39 -07:00
parent 47005dfa19
commit 704e067806

View File

@ -577,7 +577,7 @@ var unitFormatters = [
return tracking.toFixed(3) return tracking.toFixed(3)
}], }],
['px', 'px', function(fontSize, tracking) { ['px', 'px', function(fontSize, tracking) {
return (fontSize * tracking).toFixed(3) return (fontSize * tracking).toFixed(1)
}], }],
['%', 'percent', function(fontSize, tracking) { ['%', 'percent', function(fontSize, tracking) {
return (tracking * 100).toFixed(1) return (tracking * 100).toFixed(1)