]> git.proxmox.com Git - rustc.git/blobdiff - src/librustdoc/html/static/js/settings.js
New upstream version 1.68.2+dfsg1
[rustc.git] / src / librustdoc / html / static / js / settings.js
index 589bfc79360ce17f1bdf2d8bcb9c2026b2339e28..84df1b7d3911a4ecf0d3209afa4cee6f5466b079 100644 (file)
                 // This is a select setting.
                 output += `\
 <div class="radio-line" id="${js_data_name}">
-    <span class="setting-name">${setting_name}</span>
+    <div class="setting-name">${setting_name}</div>
 <div class="choices">`;
                 onEach(setting["options"], option => {
                     const checked = option === setting["default"] ? " checked" : "";
                 });
                 output += "</div></div>";
             } else {
-                // This is a toggle.
+                // This is a checkbox toggle.
                 const checked = setting["default"] === true ? " checked" : "";
                 output += `\
-<label class="toggle">\
+<label class="settings-toggle">\
     <input type="checkbox" id="${js_data_name}"${checked}>\
     <span class="label">${setting_name}</span>\
 </label>`;