diff --git a/AquaNet/src/components/settings/ChuniMatchingSettings.svelte b/AquaNet/src/components/settings/ChuniMatchingSettings.svelte index 343ae76f..6ceb6a2a 100644 --- a/AquaNet/src/components/settings/ChuniMatchingSettings.svelte +++ b/AquaNet/src/components/settings/ChuniMatchingSettings.svelte @@ -1,56 +1,53 @@ + +

{t("userbox.header.matching")}

{t("settings.cabNotice")}

- -
- -
-
-
-

{t('userbox.header.matching')}

-

Choose the matching server you want to use.

-
-
- - {#each CHU3_MATCHINGS as option} -
- {option.name} - - -
- -
- Collaborators -
- {#each option.coop as coop} - {coop} - {/each} -
-
-
- {/each} - - -
- Custom -

Enter your own URL

-
-
-
+
{#if custom} @@ -58,6 +55,52 @@ import { t } from "../../libs/i18n.js"; {/if}
+{#if overlay} +
+
+
+

{t('userbox.header.matching')}

+

Choose the matching server you want to use.

+
+
+ + {#each CHU3_MATCHINGS as option} +
clickOption(option)} + role="button" tabindex="0" on:keypress={e => e.key === 'Enter' && clickOption(option)} + class:selected={!custom && existingUrl === option.matching}> + + {option.name} + + +
+ +
+ Collaborators +
+ {#each option.coop as coop} + {coop} + {/each} +
+
+
+ {/each} + + +
e.key === 'Enter' && clickCustom()} + class:selected={custom}> + + Custom +

Enter your own URL

+
+
+
+
+{/if} +