forge
Explore
Log in

Don't you dare go Hollow

Links and buttons work again

Browse files at this commit

28236ca1c0373b2270411bc4ffa6bff3c18d9c98Ahmet Kaan GümüşParent: b9b5fe5
All checks have passed
Show checks
  • fix
    • links and buttons work again
    • the colour row's clearNote no longer replaces the restart bar's
Show full message
🐛 fix: links and buttons work again; the colour row's clearNote no longer replaces the restart bar's
crates/forge-web/assets/nav.jsmodified+3 -3
@@ -974,7 +974,7 @@
974974 }
975975 }
976976
977- function clearNote(row) {
977+ function clearHexNote(row) {
978978 var note = row.querySelector('[data-hex-note]');
979979 if (note) { note.textContent = ''; }
980980 }
@@ -982,7 +982,7 @@
982982 // A preset pick moves its row's knob to the preset's hue, without choosing Custom.
983983 function setKnob(row, hue) {
984984 setRow(row, hue, rowVivid(row), true);
985- clearNote(row);
985+ clearHexNote(row);
986986 }
987987
988988 // A hue or vividness slider: the row's Custom choice takes the new colour, and the colour shows on
@@ -992,7 +992,7 @@
992992 var custom = row ? row.querySelector('input[data-hue-custom]') : null;
993993 if (!row || !custom) { return; }
994994 setRow(row, rowHue(row), rowVivid(row), true);
995- clearNote(row);
995+ clearHexNote(row);
996996 custom.checked = true;
997997 wantColour(PREVIEW_ATTR[custom.name], custom.value);
998998 }