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 commit ea22621232.

* Revert "Revert "fixed windows auto-reload error""

This reverts commit 669cec4217.

* Revert "Revert "Revert "fixed windows auto-reload error"""

This reverts commit d90352633c.

* 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:
aNOOBis 2022-06-09 21:25:21 +03:00 committed by GitHub
parent c7e33dac68
commit df3980d745
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}