mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-28 01:39:29 +08:00
fix(update custom theme popup): broken checkbox
This commit is contained in:
parent
c1dc87918b
commit
d879b3af36
1 changed files with 6 additions and 11 deletions
|
|
@ -167,15 +167,10 @@ class SimplePopup {
|
|||
`);
|
||||
} else if (input.type === "checkbox") {
|
||||
el.find(".inputs").append(`
|
||||
<label class="checkbox">
|
||||
<input type="checkbox">
|
||||
<div class="customTextCheckbox">
|
||||
<div class="check">
|
||||
<i class="fas fa-fw fa-check"></i>
|
||||
</div>
|
||||
</div>
|
||||
${input.label}
|
||||
</label>
|
||||
<label class="checkbox">
|
||||
<input type="checkbox" checked="">
|
||||
<div>${input.label}</div>
|
||||
</label>
|
||||
`);
|
||||
} else {
|
||||
el.find(".inputs").append(`
|
||||
|
|
@ -1465,7 +1460,7 @@ list["resetProgressCustomTextLong"] = new SimplePopup(
|
|||
list["updateCustomTheme"] = new SimplePopup(
|
||||
"updateCustomTheme",
|
||||
"text",
|
||||
"Update Custom Theme",
|
||||
"Update custom theme",
|
||||
[
|
||||
{
|
||||
type: "text",
|
||||
|
|
@ -1479,7 +1474,7 @@ list["updateCustomTheme"] = new SimplePopup(
|
|||
},
|
||||
],
|
||||
"",
|
||||
"Update",
|
||||
"update",
|
||||
async (_thisPopup, name, updateColors) => {
|
||||
const snapshot = DB.getSnapshot();
|
||||
if (!snapshot) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue