feat: added unit label
This commit is contained in:
parent
2cbd931e99
commit
37b300b8e9
2 changed files with 10 additions and 0 deletions
|
|
@ -235,6 +235,11 @@
|
|||
var unitRow = document.createElement('div');
|
||||
unitRow.className = 'toggle-row';
|
||||
|
||||
var unitLabel = document.createElement('span');
|
||||
unitLabel.className = 'unit-label';
|
||||
unitLabel.textContent = 'Unit:';
|
||||
unitRow.appendChild(unitLabel);
|
||||
|
||||
var typeOrder = ['temperature', 'weight', 'volume', 'dimension', 'time'];
|
||||
typeOrder.forEach(function (type) {
|
||||
if (!typeHasToggle[type]) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue