diff --git a/web/src/components/settings/CustomInstanceInput.svelte b/web/src/components/settings/CustomInstanceInput.svelte deleted file mode 100644 index 7ebdb3cf..00000000 --- a/web/src/components/settings/CustomInstanceInput.svelte +++ /dev/null @@ -1,167 +0,0 @@ - - -
-
- { - checkUrl(); - inputFocused = true; - }} - on:input={() => (inputFocused = true)} - on:focus={() => (inputFocused = true)} - on:blur={() => (inputFocused = false)} - spellcheck="false" - autocomplete="off" - autocapitalize="off" - maxlength="64" - placeholder={$t("settings.processing.custom.placeholder")} - /> -
-
- - - -
-
- - diff --git a/web/src/components/settings/SettingsInput.svelte b/web/src/components/settings/SettingsInput.svelte new file mode 100644 index 00000000..3fda62b4 --- /dev/null +++ b/web/src/components/settings/SettingsInput.svelte @@ -0,0 +1,193 @@ + + +
+
+ checkInput()} + on:input={() => (inputFocused = true)} + on:focus={() => (inputFocused = true)} + on:blur={() => (inputFocused = false)} + spellcheck="false" + autocomplete="off" + autocapitalize="off" + maxlength="64" + {placeholder} + /> +
+ +
+ + + +
+
+ + diff --git a/web/src/routes/settings/instances/+page.svelte b/web/src/routes/settings/instances/+page.svelte index 31b7934f..324a9af6 100644 --- a/web/src/routes/settings/instances/+page.svelte +++ b/web/src/routes/settings/instances/+page.svelte @@ -3,15 +3,14 @@ import { t } from "$lib/i18n/translations"; + import SettingsInput from "$components/settings/SettingsInput.svelte"; import SettingsToggle from "$components/buttons/SettingsToggle.svelte"; import SettingsCategory from "$components/settings/SettingsCategory.svelte"; - import CustomInstanceInput from "$components/settings/CustomInstanceInput.svelte";
{#if $settings.processing.enableCustomInstances} - + {/if}