gui: Allow toggleable units for transfer rate (fixes #234)

Click the transfer rate to toggle between binary-exponent bytes (KiB/s,
MiB/s) and metric based bits (kb/s, Mb/s). The setting is persisted in
browser local storage (best effort).

GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4074
This commit is contained in:
Jakob Borg
2017-03-31 06:32:54 +00:00
committed by Audrius Butkevicius
parent cbdb036b69
commit c3820fbbf2
5 changed files with 55 additions and 4 deletions

View File

@@ -221,6 +221,13 @@ identicon {
height: 1em;
}
a.toggler {
color: inherit;
}
a.toggler:hover {
border-bottom: 1px dashed;
text-decoration: none;
}
/**
* Progress bars with centered text