style: formatting

This commit is contained in:
2024-10-12 18:26:05 +02:00
parent 677953bf4e
commit 93834588ca
3 changed files with 18 additions and 6 deletions

6
.idea/jsLibraryMappings.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptLibraryMappings">
<includedPredefinedLibrary name="Node.js Core" />
</component>
</project>

6
.idea/prettier.xml generated Normal file
View File

@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="PrettierConfiguration">
<option name="myConfigurationMode" value="AUTOMATIC" />
</component>
</project>

View File

@@ -23,8 +23,8 @@ import {
onCleanup,
Setter,
Show,
Switch
} from 'solid-js';
Switch,
} from "solid-js";
const MainScene: Component = () => {
return (
@@ -147,7 +147,7 @@ const TabContent: Component = () => {
const QueueModal: Component = () => {
let queueModal: HTMLDivElement | undefined;
const [clickedOutside, setClickedOutside] = createSignal(false);
const [, setClickedOutside] = createSignal(false);
const handleOutsideClick = (event: MouseEvent) => {
if (queueModal && !queueModal.contains(event.target as Node)) {
@@ -159,13 +159,13 @@ const QueueModal: Component = () => {
createEffect(() => {
if (songQueueModalOpen()) {
setClickedOutside(false);
document.addEventListener('mousedown', handleOutsideClick);
document.addEventListener("mousedown", handleOutsideClick);
} else {
document.removeEventListener('mousedown', handleOutsideClick);
document.removeEventListener("mousedown", handleOutsideClick);
}
onCleanup(() => {
document.removeEventListener('mousedown', handleOutsideClick);
document.removeEventListener("mousedown", handleOutsideClick);
});
});