We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
assets/src/js/components/Table.js creates the widthClassas
assets/src/js/components/Table.js
widthClass
widthClass = "w" + Math.min(98, Math.round(p.Pageviews / state.total * 100 * 2.5));
=> so, there's no leading 0 for values < 10, e.g. w7
0
w7
assets/src/css/styles.css defines the width classes with leading 0, e.g.
assets/src/css/styles.css
.w07:after{width:7%}
=> The light-green count bars inn the "Top Pages" and "Top Referrers" tables are not displayed properly for values < 10.
To fix this, widthClassshould be zero padded, e.g.
widthClass = "w" + ("" + Math.min(98, Math.round(p.Pageviews / state.total * 100 * 2.5))).padStart(2, '0');
The text was updated successfully, but these errors were encountered:
Add zero padding to the widthClass generation
a20da22
Closes #323 Signed-off-by: Lukas Kämmerling <lukas.kaemmerling@hetzner-cloud.de>
LKaemmerling
Successfully merging a pull request may close this issue.
assets/src/js/components/Table.js
creates thewidthClass
as=> so, there's no leading
0
for values < 10, e.g.w7
assets/src/css/styles.css
defines the width classes with leading0
, e.g.=> The light-green count bars inn the "Top Pages" and "Top Referrers" tables are not displayed properly for values < 10.
To fix this,
widthClass
should be zero padded, e.g.The text was updated successfully, but these errors were encountered: