mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-27 17:27:32 +08:00
small fix for themes popup (#3085) aNOOBisTheGod
* spacebar in presets and tags addition * super mega spacebar remake * style fix * final name removal in ui * replaceAll in ape removal * using display above account chart * create preset in command line addition * testing removal * one more testing removal * create tag command line addition * Update commandline-lists.ts * moved add commands to the bottom hiding if user is not signed in * refactor * hiding tags and presets when signed out * fixed presets and tags display in alerts * russian_25k and russian_50k addition * russian 375k addition * lil fix * fixed windows auto-reload error * Revert "fixed windows auto-reload error" This reverts commitea22621232. * Revert "Revert "fixed windows auto-reload error"" This reverts commit669cec4217. * Revert "Revert "Revert "fixed windows auto-reload error""" This reverts commitd90352633c. * themes popup small fix * using && Co-authored-by: Miodec <bartnikjack@gmail.com> Co-authored-by: Vasiliy Novozhilov <vasya@192.168.1.3>
This commit is contained in:
parent
c7e33dac68
commit
df3980d745
1 changed files with 4 additions and 1 deletions
|
|
@ -11,6 +11,7 @@ import { Auth } from "../firebase";
|
|||
import { isAnyPopupVisible } from "../utils/misc";
|
||||
|
||||
let commandLineMouseMode = false;
|
||||
let themeChosen = false;
|
||||
|
||||
function showInput(
|
||||
command: string,
|
||||
|
|
@ -164,6 +165,7 @@ function updateSuggested(): void {
|
|||
}
|
||||
|
||||
export let show = (): void => {
|
||||
themeChosen = false;
|
||||
if (!$(".page.pageLoading").hasClass("hidden")) return;
|
||||
Focus.set(false);
|
||||
$("#commandLine").removeClass("hidden");
|
||||
|
|
@ -481,7 +483,7 @@ $("#commandLineWrapper #commandLine .suggestions").on("mouseover", (e) => {
|
|||
if (!/font/gi.test(obj.id)) {
|
||||
UpdateConfig.previewFontFamily(Config.fontFamily);
|
||||
}
|
||||
if (obj.hover) obj.hover();
|
||||
if (obj.hover && !themeChosen) obj.hover();
|
||||
}
|
||||
});
|
||||
} catch (e) {}
|
||||
|
|
@ -491,6 +493,7 @@ $(document).on(
|
|||
"click",
|
||||
"#commandLineWrapper #commandLine .suggestions .entry",
|
||||
(e) => {
|
||||
themeChosen = true;
|
||||
$(".suggestions .entry").removeClass("activeKeyboard");
|
||||
trigger($(e.currentTarget).attr("command") as string);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue