mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-13 15:36:42 +08:00
fixed a bug where the restart button would appear in the wrong place
This commit is contained in:
parent
a23107fd6b
commit
05bffce79b
1 changed files with 6 additions and 3 deletions
|
@ -95,7 +95,8 @@ function setQuickTabMode(mode) {
|
|||
<key>esc</key> - command line`);
|
||||
|
||||
} else {
|
||||
$("#restartTestButton").remove();
|
||||
// $("#restartTestButton").remove();
|
||||
$("#restartTestButton").addClass('hidden');
|
||||
$("#bottom .keyTips").html(`<key>tab</key> - restart test<br>
|
||||
<key>esc</key> - command line`);
|
||||
}
|
||||
|
@ -105,13 +106,15 @@ function setQuickTabMode(mode) {
|
|||
function toggleQuickTabMode() {
|
||||
config.quickTab = !config.quickTab;
|
||||
if (!config.quickTab) {
|
||||
$(".pageTest").append('<div id="restartTestButton" class="" tabindex="0"><i class="fas fa-redo-alt"></i></div>');
|
||||
// $(".pageTest").append('<div id="restartTestButton" class="" tabindex="0"><i class="fas fa-redo-alt"></i></div>');
|
||||
$("#restartTestButton").removeClass('hidden');
|
||||
$("#restartTestButton").css("opacity", 1);
|
||||
$("#bottom .keyTips").html(`<key>tab</key> and <key>enter</key> / <key>space</key> - restart test<br>
|
||||
<key>esc</key> - command line`);
|
||||
|
||||
} else {
|
||||
$("#restartTestButton").remove();
|
||||
// $("#restartTestButton").remove();
|
||||
$("#restartTestButton").addClass('hidden');
|
||||
$("#bottom .keyTips").html(`<key>tab</key> - restart test<br>
|
||||
<key>esc</key> - command line`);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue