Skip to content

Commit b2b9dd9

Browse files
committed
Add bold font for save slot numbers in save and load dialogboxes
1 parent ae27ae1 commit b2b9dd9

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

js/ctrl.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,11 @@ $(function() {
4343
description = lsname;
4444
menu = saveActionCreate(i);
4545
}
46+
description = $('<div>').text(description).html();
4647
if (settings['numeric_keys']) {
47-
description = i + ': ' + description;
48+
description = `<b>${i}:</b> ${description}`;
4849
}
49-
btn.text(description);
50+
btn.html(description);
5051
li.append(btn);
5152
if (menu) li.append(menu);
5253
$('#saveslots').find('.list-group').append(li);
@@ -203,11 +204,11 @@ $(function() {
203204
btn.text(i18next.t('empty_save_slot')).prop('disabled', true);
204205
menu = null;
205206
} else {
206-
var description = lsname;
207+
var description = $('<div>').text(lsname).html();
207208
if (settings['numeric_keys']) {
208-
description = i + ': ' + description;
209+
description = `<b>${i}:</b> ${description}`;
209210
}
210-
btn.text(description);
211+
btn.html(description);
211212
menu = saveActionCreate(i);
212213
}
213214
li.append(btn);

0 commit comments

Comments
 (0)