misc: hide instance URL in login page if linked instance url

This commit is contained in:
Xyphyn committed 2023-08-19 18:22:11 -07:00
1 parent 9df7dc0604
commit 8ecf656e5f
2 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "photon-lemmy",
"version": "0.9.13",
"version": "0.9.14",
"private": true,
"scripts": {
"dev": "vite dev",
+3 -1
View File
@@ -72,6 +72,7 @@
}}
required
/>
{#if !LINKED_INSTANCE_URL}
<span class="mt-5 font-bold">@</span>
<TextInput
id="instance_url"
@@ -83,6 +84,7 @@
required
pattern={'(?!-)[A-Za-z0-9-]+([-.]{1}[a-z0-9]+)*.[A-Za-z]{2,6}'}
/>
{/if}
</div>
<div class="flex flex-row gap-2">
<TextInput
@@ -101,7 +103,7 @@
pattern={'\\d{6}'}
minlength={6}
maxlength={6}
class="w-20"
class="w-24"
on:input={(e) => {
if (!Number.isInteger(Number(e.detail.data))) {
e.preventDefault()